$().ready(function() {
$(’#birthday’).focus(function() {// focus获取焦点
return HS_setDate(this);
});// #根据register.jsp页面的id写
KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲userRegisterFor…"
},
phone : {
pattern : “^(0[0-9]{2,3}-)?([2-9][0-9]{6,7})+(-[0-9]{1,4})?KaTeX parse error: Undefined control sequence: \d at position 37: …7|8|9]|18[8|9])\̲d̲{8})”
},
email : {
email : true
},
photo : {
pattern : ".+(.JPEG|.jpeg|.JPG|.jpg|.GIF|.gif|.BMP|.bmp|.PNG|.png)KaTeX parse error: Can't use function '\.' in math mode at position 20: … //^[a-zA-Z]:(\̲.̲+)(JPEG|jpeg|JP…
}
},
messages : {
userno : “请输入學號”,
username : “请输入用户名”,
password : {
required : “请输入密码”,
rangelength : “密码介于6-20个字母”
},
confirm_password : {
required : “请输入密码”,
equalTo : “两次密码输入不一致”
},
zipcode :{
pattern :“请输入正确的邮编!”
},
phone : {
pattern :“请输入正确电话号码!”
},
photo : {
pattern :“照片格式不正确!”
}
}
})
});