JS 判断数组包含某个字符

//arrDisable 数组  infoType 字符

if($.inArray(infoType, arrDisable))

{

console.log('包含');

}

原文地址:https://www.cnblogs.com/DONET-LC/p/6625844.html