KimhillZhang  

用MVC内的return Json()返回到success与failure..弄了好久,,才弄出来。

 

schoolform.getForm().submit({
                        clearValidation: true,
                        waitMsg: '正在提交请稍后...',
                        url: '/#/#,
                        success: function (form, action) {
                                                   },
                        failure: function (form, action) {

                        }
})

 return Json(new { success = true}, JsonRequestBehavior.AllowGet);这样就可以执行到success了。

 return Json(new { success = false}, JsonRequestBehavior.AllowGet);这样就可以执行到failure了。

 

posted on 2012-03-22 11:47  KimhillZhang  阅读(3768)  评论(0编辑  收藏  举报