2 个回答
var str = 'abc345abcab';
console.log(str.replace(/\d+?/g,function(a){return +a*2;}));
新手上路,请多包涵

乘以2不是6810?

推荐问题