fruits.splice(pos,1);//thisishowtoremoveanitem//["Strawberry","Mango"] 从一个索引位置删除多个元素 varvegetables=['Cabbage