JavaScript objects and Array reference Encyclopedia (3)

Source: Internet
Author: User
Tags date format array numeric value reference return time in milliseconds
Reference | objects | Array gettimezoneoffset () returns the time zone deviation value (the number of hours between Greenwich Mean time and the time zone setting of the computer where the script is run)
GetYear () return year
Parse () returns the number of milliseconds since January 1, 1970 00:00:00 in the date string (the Date object stores dates and times from that time in milliseconds) but note that the method is currently not running correctly
Setdate () Changing the date of a Date object
Sethours () Change the number of hours
Setminutes () Change the number of minutes
Setmonth () Change month
Setseconds () Change the number of seconds
SetTime () Change the full time
Setyear () Change year
toGMTString () Turns the Date object (a value) into a GMT time string, returning a value similar to the following: weds,15 June l997 14:02:02 GMT (the exact format depends on the operating system running on the computer)
toLocaleString () Turns the Date object's dates (a numeric value) into a string, using a specific date format that is configured on the computer that is used
UTC () uses date UTC (year, month, day, hour, minute, and second) to return the date as the number of milliseconds since January 1, 1970, when, minutes, and seconds are optional)

B.7 Document Object

This object is a property of the window and frames objects, and is a document that is displayed in a Windows or frame.

Property

Alinkcolor Active link color (ALINK)
Anchor a HTMI anchor point, created using the <a name=> tag (the property itself is also an object)
The anchors array lists the arrays of document anchor objects (<a name=>) (the property itself is also an object)
BgColor the background color of the document (bgcolor)
A cookie is a piece of information stored in a cookie.txt file, which is a property of the Document object
Text color of Fgcolor document (text attribute in <BODY> tag)
A form (<FORM>) in the form document (the property itself is also an object)
Forms Anay lists an array of form objects (the property itself is an object) in the order in which they appear in the document
LastModified the last modified date of the document
The color of the link in the LinkColor document, that is, the link attribute in the <BODY> tag (linked to a document that the user has not observed)
A <a href=> tag in the link document (the property itself is also an object)



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.