this.value=(this.value.match(/\d+(\.\d{0,2})?/)||[''])[0] 转载于:https://www.cnblogs.com/Strugglehard/p/5085522.html