javascript 数组的方法集合
javascript 数组的方法集合
发布时间:2016-12-30 来源:查字典编辑
摘要:看看手册上的解释,拥有以下方法:5iScRIPT.CNconcat方法join方法pop方法push方法reverse方法shift方法sl...

看看手册上的解释,拥有以下方法:

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])

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新Javascript教程学习
热门Javascript教程学习
编程开发子分类