Home >Web Front-end >JS Tutorial >JavaScript array method collection_basic knowledge

JavaScript array method collection_basic knowledge

WBOY
WBOYOriginal
2016-05-16 19:03:541024browse

Look at the explanation in the manual, it has the following methods:
5iScRIPT.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 the JavaScript1.6 version New method, supports Firefox1.5 but IE7 and below does not support
every(testfunction[thisobj])
filter(testfunction[thisobj])
foreach(testfunction[thisobj]) indexOf(targetElement, [startIndex ])
lastIndexOf(targetElement, [startIndex]
map(testfunction[thisobj])
some(testfunction[thisobj])

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn