两个数组判断是否有重复项

$.each(arr1,function(i,value){
    val = value;
    num1 = i;//用来标记当前arr1数组中的重复项
    $.each(arr2,function(i,value){
        if(val == value){
            alert(value);
        }
    });
});

相关文章:

  • 2022-12-23
  • 2021-10-25
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
猜你喜欢
  • 2021-12-04
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
  • 2021-11-18
相关资源
相似解决方案