正则表达式匹配所有数字,包括带小数点的数字

let reg = /^[+-]?(0|([1-9]\d*))(\.\d+)?$/g;

猜你喜欢

转载自blog.csdn.net/qq_37899792/article/details/89879566
今日推荐