我有两个数组
var array1 = new Array ["a","b","c","d","e"];
var array2 = new Array ["a","d"];
我想从array1中删除array2的元素
结果[“b”,“e”]
有没有像
array1 = array1.remove(array2)
注意我正在使用jquery-1.9.1
最佳答案
尝试:
原文链接:https://www.f2er.com/jquery/428200.htmlvar diff = $(array1).not(array2).get();