1.向特定位置插入元素
//array.splice(index,howmany,item1,.....,itemX) var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.splice(2,0,"Lemon","Kiwi");
2.从数组中删除特定元素
// var fruits = ["Banana", "Orange", "Apple", "Mango"]; var index=$.inArray("Apple",fruits); boxList.splice(index,1); //删除数组中的项