$("#form").validate({
rules : {
ownerPhone:{
isPhone : true
}
},
errorPlacement: function(error, element) {
},
invalidHandler:function(form,validator){
$.each(validator.invalid, function(k,v) {
guyu.commonJS.showMsg(v);
return false;
});
},
messages: {
ownerPhone: "请输入正确的手机号码",
ownerName:"请输入业主姓名",
address:"请输入详细地址"
}
});
4、flex布局