//验证数字或小数金额 function isMoney(s) { var regu = "^[0-9]+([.]{1}[0-9]+|[.]{0})$"; var re = new RegExp(regu); if (re.test(s)) { return true; } else { return false; } } //验证财务金额123,111,00 //var regu = "^([0-9]+([,][0-9]{3})*)+([.]{1}[0-9]{1,2}|[.]{0})$";