,直接上传代码//array在原型中添加一个remove方法if(index>-1){this.splice(index,1);}};调用时,只需arr.remove(val)
在js的ARRAY中添加一个remove()相关文章