var refId = $("#class").val();
var reg = /^(\d+[,])*(\d+)$/;
if(refId != ""){
if(!reg.exec(refId)){
alert("格式有误!");
return false;
}
}
var refId = $("#class").val();
var reg = /^(\d+[,])*(\d+)$/;
if(refId != ""){
if(!reg.exec(refId)){
alert("格式有误!");
return false;
}
}