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