May 15 class Note the properties of the Location object, the Document object, the JS built-in object, the date event object, the-js

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.