摘要: / * * 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 阅读全文
posted @ 2011-07-20 13:07 sailxc 阅读(4417) 评论(0) 推荐(0) 编辑