The drawbacks of a front-end rendering data
Imitation apache server and client several interactive:
1. Load static pages
2, loading static resources
3, transmission ajax request, receives the request and returns the process.
4, the front end loop through the browser receives the data.
Problems: too much interaction
/*
* Using ajax method is called as requested => front-end rendering data, also known as client-side page rendering
*/
The solution: through the data on the server side
—————————————————
Second, the server-side page rendering
1, enter npm official website, search for art-templet third-party modules https://www.npmjs.com/package/art-template
2, open the document