JS正则格式化日期,在字符串中插入内容var str abcdefgstr str.replace(/(.{3})/,$1BBB)alert(st
JS正则格式化日期,在字符串中插入内容
var str = 'abcdefg';str = str.replace(/(.{3})/,"$1BBB");alert(str);//abcBBBdefg
?
JS正则格式化日期,在字符串中插入内容
var str = 'abcdefg';str = str.replace(/(.{3})/,"$1BBB");alert(str);//abcBBBdefg
?