Find solutions for front-end URLs and back-end synchronization in the MVC framework, Mvcurl
Basic ideas:
The URL tag is used to generate the full URL character, the part of the front-end dynamic parameter is filled with the Mr. Foo, and the dynamic parameter is replaced with the regular match.
This approach can be applied in a variety of MVC frameworks, wonderful.
No nonsense, on the yards.
var url = "{URL app=xxxxn&act=yyy&id=[0]}"= Url.format ({$id});
// String.Format simultaneous matching [] () {} content mode if (! String.prototype.format) { function () { var args = arguments; var tag = '; return This function (Match, m0,m1,m2) { = m0+m2; if return typeof Args[m1]! = ' undefined '? ARGS[M1]: (m0+m1+ m2);};} ;
The method of the string object is changed in the way of prototype, it can be rewritten appropriately and become the general function parameter.
How to prevent the address bar to directly hit the URL access background, the framework is spring MVC, using the annotation method
Place the login information in the session and then determine if (session==null) {Jump to landing page}.
NET MVC frontend How to interact with the background
Basically, Ajax is used to commit to the background or get data from the background.
http://www.bkjia.com/PHPjc/863230.html www.bkjia.com true http://www.bkjia.com/PHPjc/863230.html techarticle find the solution of the front-end URL and back-end synchronization in the MVC framework, mvcurl The basic idea: first generate the full URL character with the URL tag, the part of the front-end dynamic parameter is filled with Mr. Foo, and finally ...