前台正则过滤指指定长度的小数位

replace(/^\D{0,9}(\d{0,9}(?:.\d{0,2})?).*$/g, ‘$1’)

猜你喜欢

转载自blog.csdn.net/wangleisuiqiansuiyue/article/details/114172049
今日推荐