Location Properties: Host: Returns the current host name and port number Timer function: SetTimeout () setinterval () Second, Document Object getElementById (); Gets a DOM object based on the ID value getelementsbyname (); Gets multiple DOM objects based on the Name property value getElementsByTagName (); Gets multiple DOM objects from a tag gets the contents of the tag body InnerHTML gets the value value of input, gets the values of the drop-down box selected Thisrepresents the current object summary: innerHTML and value can be either obtained or modified three, JS built-in objects array: used to store a series of values in a separate variable name string: Used to support string processing math: Used to perform common math tasks, it Contains several numeric constants and functions Date: used to manipulate date and time dates object: var today=NewDate (); //Year:var year =today.getfullyear (); //Monthvar month = Today.getmonth () + 1; //Datevar day =today.getdate (); //whenvar hour =today.gethours (); //pointsvar minute =today.getminutes (); //secondsvar seconds =today.getseconds (); Math object: Random (); Random number rand (); Rounding
May 15 class Note the properties of the Location object, the Document object, the JS built-in object, the date event object, the-js