JavaScript has learned the way

Source: Internet
Author: User

The 90.push () method can receive any number of arguments, added to the end one by one, and returns the length of the modified array
The Pop () method removes the last item from the end of the array, adheres to the value of length, and then returns the removed item

The 91.shift () method moves the first item in the array and returns the item, with the same length minus one
The Unshift () method is the opposite of the shift () method

The 92.sort () method arranges array items in ascending order-that is, the minimum value is at the front and the maximum value is behind
The reverse () method reverses the order of the array items
The ValueOf () method returns the object type of the numeric type

The 94.cancat () method can create a new array based on all the items in the current array
The slice () method can create a new array based on one or more items in the current array. (see page 94 for specific usage)

95.splice () method see page 95
Both IndexOf () and LastIndexOf () two methods accept two parameters: the index to find the subparagraphs (optional) that represents the start point of the Find location indexOf from the beginning (LastIndexOf opposite

96. Specific: Every (), filter (), ForEach (), map (), some () method

The 97.reduce () and Reduceright () methods have different starting positions for all the items in the iterated group

99.Date type

101.toDateString (), totimestring (), tolocaledatestring (), tolocaletimestring (), toutcstring (), tolocalestring () Methods for formatting a date string

102. Date/Time Component Method table

105.RegExp Instance Properties Global,ignorecase,lastindex,multiline,source
The main method of the RegExp object is exec (), and exec () receives an array of parameters that return the first occurrence of the information, the additional two properties of the method index and input. The Index property represents the position of the match in the string, and input indicates that the regular expression string is applied.

107. Regular expression The second method: Test (), he accepts a string that returns true if the pattern matches the parameter, otherwise returns FALSE.

The 108.RegExp method exec () and the test () method have a long property name and a short property name.

The main purpose of 113.arguments is to save the parameters of the function, and this object also has a property called Callee, which is a pointer to the function of the arguments object. Example See 114

114.this refers to the environment variable that the function executes--or the This value (the This object refers to window when the function is called in the global scope of the Web page)

The 115.caller property holds a function reference that invokes the current function, and if it is called in the global scope, his value is null

116. Each function contains 2 genera of length and prototype (sixth chapter)
Length indicates the number of named arguments received by the function
Each function contains 2 non-inherited methods: Apply () and call ()
The Apply () method receives two parameters one is the scope of its running function, the other is the parameter array (the second argument can be an instance of an array, or it can be a arguments object)

118.bind () Method: Creates a function instance whose this value is bound to the value passed to the bind () function

JavaScript has learned the way

Related Article

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.