绑定的时候 不绑定 提交的url ajaxFormValidationURL
$("#permForm").validationEngine({
binded:false,
maxErrorsPerField:1,
promptPosition: "topLeft:100",
scroll:true,
showOneMessage:true,
validateNonVisibleFields:true,
focusFirstField:true,
ajaxFormValidation: true,
/*ajaxFormValidationURL:"/permission/setPermission",*/
ajaxFormValidationMethod:"post",
onBeforeAjaxFormValidation: showRequest,
onAjaxFormComplete: showResponse,
onFieldFailure:setErrorStyle
});
请求接口之前给from action
$("#permForm").attr("action","/permission/addPermission");
源码里是url为空就取from的action 请求
1908

被折叠的 条评论
为什么被折叠?



