Open xieyushi opened 6 years ago
'3432.3499999'.replace(/([0-9]+.[0-9]{2})[0-9]*/,"$1"); 记住前面一定要是字符串,如果是数字。。。是会报错的。。。
'3432.3499999'.replace(/([0-9]+.[0-9]{2})[0-9]*/,"$1"); 记住前面一定要是字符串,如果是数字。。。是会报错的。。。