leaves note

write by a programer

 
var a='郑州郑州河南河南';
var b='郑州';
var exp=new RegExp(b,'g');
a.replace(exp,'周口')

输出周口周口河南河南


上一篇: mysql 优化相关