摘要: 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 阅读全文
posted @ 2013-01-08 03:30 王超_cc 阅读(1280) 评论(0) 推荐(0) 编辑
摘要: 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") + " 阅读全文
posted @ 2013-01-08 03:15 王超_cc 阅读(247) 评论(0) 推荐(0) 编辑