会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
YYDaddy
博客园
首页
博问
闪存
新随笔
订阅
管理
2014年12月30日
Jquery Array
摘要: Array.prototype.remove = function(el){ return this.splice(this.indexOf(el),1); } var arr = [1,2,3,4,5]; arr.remove(4); console.log(arr);//[1,2,3,5] var array = [1,2,3,4,5]; array.splice(2,1...
阅读全文
posted @ 2014-12-30 16:20 YYDaddy
阅读(168)
评论(0)
推荐(0)
编辑