vararr1=[[1,2],[3,4],[5,6],[7,8],[9,10]];vararr2=[2,8];varstr1=json.stringify(arr1);for(vari=0;i<arr2.length;i++){str1=str1.replace(newregexp(",?"+arr2[i],"g"),"");}arr1=eval("("+str1+")");console.log(arr1);
js 數組查詢:js數組套對象[朗讀]
@insert
頂0
加入收藏
相關問答推薦