2024-07-05 03:57:53
var param = [{id:1,value:[1,3,5]},{id:1,value:[1,2,3]}];
var check = [1,3,5];
var judge = function (check, param) {
var isExisted = false;
$.each(param, function (i, n){
if (n.value.sort().join(",") == check.sort().join(",")) {
isExisted = true;
return i;
}
});
if (!isExisted) {
alert ("choose error");
}
};
judge (check, param);