js正则表达式

来源:互联网 发布:期货行情数据接口 编辑:程序博客网 时间:2024/06/06 00:47

将逗号前后都加上空格;

(data[i].text).replace(new RegExp(',','gm'), ' , ')
1 0
原创粉丝点击