注意是要乘以2得到
1 回答

至尊宝的传说
TA贡献1789条经验 获得超10个赞
var str = 'abc345abcab';
console.log(str.replace(/\d+?/g,function(a){return +a*2;}));
添加回答
举报
0/150
提交
取消