//str完整的字符串 //substr是否存在的字符 //判断字符存在方法 function isContains(str, substr) { return str.indexOf(substr) >= 0; }