function isInclude(ary0,ary1){
var itemAry=[];
ary0.forEach(function(p1){
if(ary1.indexOf(p1)!=-1){
itemAry.push(p1)
}
})
if(itemAry.length==ary0.length){
return true;
}else{
return false;
}
}
Determine whether an array contains another array (there are many methods)
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325229003&siteId=291194637
Recommended
Ranking