javascript 中的replace方法 Posted on 2004-12-16 16:20 min 阅读(1594) 评论(4) 编辑 收藏 第一次发现javascript中replace() 方法如果直接用str.replace("-","!") 只会替换第一个匹配的字符.
replace() The replace() method returns the string that results when you replace text matching its first argument (a regular expression) with the text of the second& ……