function $(o) { return document.getElementById(o) }
$('test').onblur = function() {
debugger;
var re = /^\d+(\.\d)?$/;
var bol = re.test(this.value);
if (bol == true) {
}
else {
alert("123");
}
}
他是空也是flase...直接弹出123...能不能在他是数字和小数和空的情况下是true.....谢谢了
慕姐8265434
相关分类