var arr = [[1,"ad"],[21,"qwe"]]; for(var i=0; i<arr.length; i++) { if (arr[i+1][1] == arr[i][1]) { arr.splice(i, 1); } }
VM294:4 Uncaught TypeError: Cannot read property '1' of undefined at <anonymous>:4:19
Caballarii
FSYu
相关分类