用javascript怎样remove掉数组中的一个元素

如题所述

var array = [1,2,3,4,5];
array.splice(3,1);
console.log(array);

温馨提示:答案为网友推荐,仅供参考
相似回答