Method set of javascript Array _ basic knowledge

Source: Internet
Author: User
We often use js arrays, because they are easy to control, so some of his methods, you must be familiar with the application to see the instructions in the manual, there are the following methods:
5iscat. CNconcat Method
Join Method
Pop Method
Push method
Reverse Method
Shift Method
Slice Method
Sort Method
Splice Method
ToLocaleString Method
ToString Method
Unshift Method
ValueOf Method

5iScRIPt. Cn
The following is a new method for JavaScript1.6, which supports Firefox1.5 + but not IE7 or earlier.
Every (testfunction [thisobj])
Filter (testfunction [thisobj])
Foreach (testfunction [thisobj]) indexOf (targetElement, [startIndex])
LastIndexOf (targetElement, [startIndex]
Map (testfunction [thisobj])
Some (testfunction [thisobj])

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.