摘要:
var text='Hello world, Hello world'; var b= text.replace('world','zhengxiaoya'); // 找到字符串中的第一个'world',并把它替换为'zhengxiaoya' var c=text.replace(/world/g,'zhengxiaoya'); // 用正则表达式去匹配所有的'world... 阅读全文
posted @ 2017-12-20 14:57
$>_<$
阅读(13748)
评论(0)
推荐(0)

浙公网安备 33010602011771号