浮点数的正则

 
  

/^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/


猜你喜欢

转载自blog.csdn.net/TottyAndBaty/article/details/83829209