function checkFunDic(str, type) {
if (str == '' || !str) {
console.log(type + "功能类型暂无,联系后台处理")
return false
}
if (str.indexOf(type) == -1) {
return false
} else {
return true
}
}
module.exports.checkFunDic = checkFunDic;
---------------------------------------