摘要:
/ * * string:原始字符串 * substr:子字符串 * isIgnoreCase:忽略大小写* /function contains(string, substr, isIgnoreCase) { if (isIgnoreCase) { string = string.toLowerCase(); substr = substr.toLowerCase(); } var startChar = substr.substring(0, 1); var strLen = substr.length; for (var j = 0; j<string.length - strLe 阅读全文