javascript 數(shù)組的方法集合
更新時(shí)間:2008年06月05日 20:00:31 作者:
我們經(jīng)常用到j(luò)s的數(shù)組,因?yàn)樗奖憧刂?,所以他的一些方法,大家一定要熟練?yīng)用
看看手冊(cè)上的解釋,擁有以下方法:
5iScRIPT.CNconcat方法
join方法
pop方法
push方法
reverse方法
shift方法
slice方法
sort方法
splice方法
toLocaleString方法
toString方法
unshift方法
valueOf方法
5iScRIPt.Cn
還有就是以下是JavaScript1.6版本的新方法,支持Firefox1.5+但是IE7及以下版本不支持
every(testfunction[thisobj])
filter(testfunction[thisobj])
foreach(testfunction[thisobj]) indexOf(targetElement, [startIndex])
lastIndexOf(targetElement, [startIndex]
map(testfunction[thisobj])
some(testfunction[thisobj])
5iScRIPT.CNconcat方法
join方法
pop方法
push方法
reverse方法
shift方法
slice方法
sort方法
splice方法
toLocaleString方法
toString方法
unshift方法
valueOf方法
5iScRIPt.Cn
還有就是以下是JavaScript1.6版本的新方法,支持Firefox1.5+但是IE7及以下版本不支持
every(testfunction[thisobj])
filter(testfunction[thisobj])
foreach(testfunction[thisobj]) indexOf(targetElement, [startIndex])
lastIndexOf(targetElement, [startIndex]
map(testfunction[thisobj])
some(testfunction[thisobj])
相關(guān)文章
使用JavaScript 實(shí)現(xiàn)各種跨域的方法
本篇文章是對(duì)在JavaScript中實(shí)現(xiàn)各種跨域方法的介紹。需要的朋友參考下2013-05-050基礎(chǔ)學(xué)習(xí)前端開發(fā)的一些建議
這篇文章主要介紹了0基礎(chǔ)學(xué)習(xí)前端開發(fā)的一些建議,文中一些建議非常寶貴,希望能幫助想學(xué)前端的你,感興趣的朋友可以了解下2020-07-07