摘要:
//普通的 relpace方法写法var str = "relace thisthisthisthis";str.replace('this','that');只会替换一个。结果显示的 relace thatthisthisthis;如果需要替换全部的字符串的话 需要用到正则表达var str = "relace thisthisthisthis";str.replace(/this/g,'that'); 阅读全文
posted @ 2013-03-04 21:37
kpbiao
阅读(162)
评论(0)
推荐(0)


浙公网安备 33010602011771号