jquery.validationEngine 动态修改请求url

绑定的时候 不绑定 提交的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 请求

你可能感兴趣的:(jquery.validationEngine 动态修改请求url)