摘要:
1 截取字符串//lastIndexOf();http://www.w3school.com.cn/js/jsref_lastIndexOf.asp//substring();http://www.w3school.com.cn/js/jsref_substring.asp2 字符串中查找指定字符串search() http://www.w3school.com.cn/js/jsref_search.asp 阅读全文
摘要:
1 截取字符串//lastIndexOf();http://www.w3school.com.cn/js/jsref_lastIndexOf.asp//substring();http://www.w3school.com.cn/js/jsref_substring.asp 2 查询指定字符串var str="Hello world!"document.write(str.search("H") + "<br />")document.write(str.search("World") + " 阅读全文