摘要: //验证非负实数,保留2位小数,不采取四舍五入,不能去掉无效零,obj是this //示例: function IWS_CheckDecimal(obj) { var temp = /^\d+\.?\d{0,2}$/; if (temp.test(obj.value)) { } else { obj.value = obj.value.substr(0, ... 阅读全文
posted @ 2016-06-29 18:09 lishidefengchen 阅读(10931) 评论(2) 推荐(2)