1、你这是想要统一显示错误信息呢?
这个是直接在页面上先写好一个div.err元素。errorPlacement:callback();将error都添加到里面就好了。
js:
errorPlacement:function(error,element) {
error.addpendTo("#errMsg");//将错误信息全部放入到一个div内部显示
});
跟rules,message等并列的加入:showErrors
具体为
showErrors: function (errorMap, errorList) {
if (errorList.length != 0) {
$(".mima_tishi").empty().text(errorList[0].message);
}
}