that.value = that.value.replace(/^(-)*(d+).(dd).*$/, '$1$2.$3'); //只能输入两个小数
https://blog.csdn.net/qq_24935119/article/details/96437971
https://www.jb51.net/article/83398.htm