尝试将OnBegin回调添加到AjaxOptions并从该回调返回$(’form’)。validate()。form()的值。从源头上看,这似乎应该起作用。
function ajaxValidate() { return $('form').validate().form();}<% using (Ajax.BeginForm("Post", new AjaxOptions {UpdateTargetId = "GBPostList",InsertionMode = InsertionMode.InsertBefore,onBegin = "ajaxValidate",onSuccess = "getGbPostSuccess",onFailure = "showFaliure" })) { %>*使用正确的回调名称更新了 *EDIT 。



