摘要: 1,js验证输入的数字:一位整数、两位整数、小数点后一位、小数点后两位,这样的数字。 function PercentCheck(IptThis) { var IptVal = $(IptThis).val(); var reg = /^\d\d?(\.\d\d?)?$/// var reg = /^[1-9]\d?(\.\d\d?)?$/ if (reg.exec(IptVal)) { alert("正确!"); backgroundColorReplace(); } else { $(IptThis).css("background-color",& 阅读全文
posted @ 2013-08-14 11:52 namehwh 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 年龄:身高: 阅读全文
posted @ 2013-08-14 10:30 namehwh 阅读(710) 评论(0) 推荐(0) 编辑