📅  最后修改于: 2022-03-11 15:03:27.178000             🧑  作者: Mango
toRemove =[1,2];
myArray = [1,2,3,5];
myArray = myArray.filter( function( el ) {
return toRemove.indexOf( el ) < 0;
} );