javascript中使用replace结合正则实现replaceall的效果