var ss= "3.333";
var type = /^[0-9]*[1-9][0-9]*$/;
var re = new RegExp(type);
alert(ss.match(re));
if (ss.match(re) == null) {
alert("请输入大于零的整数!");
return;
}
var type = /^[0-9]*[1-9][0-9]*$/;
var re = new RegExp(type);
alert(ss.match(re));
if (ss.match(re) == null) {
alert("请输入大于零的整数!");
return;
}