有几种方法可以做到这一点。有些比其他的更有效率。let symbols = ['A', 'B'];let num = ['3', 'A', '5', '4'];//Make a new array by only keeping the ones that are not found in the other array. This method does it by valuelet numsWithAllSymbolsRemoved = nums.filter(element=> symbols.indexOf(element) == -1) // Now numsWithAllSymbolsRemoved = ['3', '10', '5', '4']//Mutate the existing array, by index. for( let i = 0; i < num.length; i++){ // If the item in num array has a index that's not -1 (if it's not found, that's what indexOf returns if ( symbols.indexOf(num[i]) !== -1) { nums.splice(i, 1); // Actually modify the array by splicing out the current index. }} // Now num = ['3', '10', '5', '4']