<script type="text/javascript">
$(function(){
var aa = [1111,2222,3333,4444,5555,6666];
var bb=[1111,2222]
var results = $.grep(aa, function(v) {
return 0 > $.inArray(v, bb);
},false);
console.log(results);
})
</script>
时间: 2024-10-12 19:58:05