This kind of view switching can be realized on both the front and back ends~ The back end is best done by relying on some frameworks, such as thinkPHP...
Mainly talk about the front end... It is obviously inappropriate to use js to operate such a large area. The subject can use angularJS to achieve this. In that case, the right area is set to an ng-view. Various pages are cached in $templateCache, which turns it into a single-page web application... Switching is very smooth and only partial refreshes...
This kind of view switching can be realized on both the front and back ends~
The back end is best done by relying on some frameworks, such as thinkPHP...
Mainly talk about the front end...
It is obviously inappropriate to use js to operate such a large area. The subject can use angularJS to achieve this. In that case, the right area is set to an ng-view. Various pages are cached in $templateCache, which turns it into a single-page web application... Switching is very smooth and only partial refreshes...
Single page application, routing in the front-end framework can be implemented
@boomler Thank you, I did it as you said, and the effect is very good, but I have a small problem and I would like to ask you for advice.
The code is as follows:
As shown in the picture, when the page is just loaded, no content is loaded. It needs to be clicked before it can be displayed.
How to load the first page when the page is just loaded? Thank you...