发布网友 发布时间:2022-05-05 09:31
共3个回答
热心网友 时间:2022-04-25 17:59
let arr1 = ["wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid123456789987654321", "wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid123456789987654321", "wxLocalResource://imageid987654321123456789", "wxLocalResource://imageid123456789987654321"]
热心网友 时间:2022-04-25 19:17
var a = [1, 3, 5, 7, 9, 11];
var b = [5, 11];
function arr(a, b) {
for (var i = 0; i < a.length; i++) {
for (var j = 0; j < b.length; j++) {
if (a[i] === b[j]) {
a.splice(i, 1);
}
}
}
return a;
}
var pos = arr(a,b);
console.log(pos);
热心网友 时间:2022-04-25 20:52
var a=[1,2,3,4,5,6]; var b=[2,3,6]; var c =[]; for(var i=0;i