标签:ice value spl pre val break bsp 删除 remove
removeByValue (arr, val) { for (var i = 0; i < arr.length; i++) { if (arr[i] === val) { arr.splice(i, 1) break } } }
删除数组的某个元素
原文地址:https://www.cnblogs.com/candy-Yao/p/9949684.html