Now there is a project that the front and rear ends are completely separated.
ajaxTechnology to interact with data, so there is no need
nodejsUse the template engine sleeve page.
How to make
nodejsDon’t use template engine?
That is a single page, give you a thought:
The root route renders a basic page on which all ajax operations are based. This is what frameworks like vue do. Of course, no frame is needed. Then ajax gets dom insertion page rendering.
Nodejs here only rendered a basic page. In addition to providing interfaces. There is no cross-domain problem. This is what I usually do. If you don’t need a framework, take a look at history. If it is a framework, pay attention to configuring the back end. Not to refresh 404