var test=[1,2,1,2,3,4,5,6,7];1.remove
test.remove(1) 位置
test.remove(-2)test.remove(2,3)2 deletedelete test[3]3 splice
test.splice(2,1,ttt); 开始的位置, 删除的个数, 添加的个数
来源: http://www.bubuko.com/infodetail-2531455.html