我有一个像这种格式的数组
var aa = ["a","b","c","d","e","f"];
var categoryid = ["a","x","e","w","q","p"];
我想像这样检查这个列表
for(var ii = 0; ii < aa .length; ii++){
iid += " && category != "+aa [ii];
}
我也需要像这样检查条件,
if(categoryid != 0 iij) {
alert("value not present");
}
在这里,这种情况并不完全像这样工作。这里我需要这样的格式
if(categoryid != 0 && categoryid != 'a') {
alert("value not present");
}
请帮我..