码迷,mamicode.com
首页 > 其他好文 > 详细

splice

时间:2016-04-27 17:17:03      阅读:108      评论:0      收藏:0      [点我收藏+]

标签:

var a = ["1","2","3"]
undefined
a.splice
splice() { [native code] }
a.splice(2,1)
["3"]
a
["1", "2"]
a.splice(2,0,"44")
[]
a
["1", "2", "44"]
a.splice(12,0,"44")
[]
a
["1", "2", "44", "44"]

splice

标签:

原文地址:http://www.cnblogs.com/qianduanxiaocaij/p/5439460.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!