living in my life (史蘭諾系統整合服務)
2014年7月8日 星期二
[Javascript]使用 splice移除陣列元素 (Remove the array using splice element)
問題
使用 splice移除陣列元素
解決方法
for(var i = array.length-1; i--;){ if (array[i] == "xxxx") array.splice(i, 1); }
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言