标签:
<script> function subArr(a, b) { return a.filter(function(i) { return b.indexOf(i) == -1 }) } console.log(subArr([1,2,3,4],[3,4,5])); </script>
两个数组找不同
原文地址:http://www.cnblogs.com/mouse2417/p/5165391.html