//生日
var birthday_string = ”;
var re = /^[0-9]+[0-9]*[0-9]*$/ ;
var birthday_year = $(“#birthday_year”).val();
if( birthday_year != ”){
if(!re.test(birthday_year) || birthday_year.length != 4){
layer.msg(‘出生年填写不正确’,2,8);return false;
}
birthday_string +=birthday_year;
}
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/8705.html