functionremoveArr(arrayA,arrayB){returnarrayA.filter((item)=>!(arrayB.some((i)=>i==item)));}arrayA.filter(function(item...
function removeArr(arrayA,arrayB){ return arrayA.filter((item) => !(arrayB.some((i) => i == item))); } arrayA.filter(function (item) { return !arrayB.some(function (i) { return i == item; }); });
全文详见:http://xpxw.com/?id=114