阅读背景:

控制器可以根据结果返回JSON或HTML

来源:互联网 

Suppose I have a pop-up window that contains a form. I must have a controller that processes the form, and depending on the result, this controller returns either JSON (if all goes well, and popup can be closed by javascript) or HTML (if the form data is not valid and form must be replaced with a new html - with the validation error messages). So I found just such a solution: that's form:Suppose I have a pop-up window that contains a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: