In vue, the spa project refers to a single-page web application. spa is a web application that loads a single HTML page and dynamically updates the page when the user interacts with the application. Only the first time the page is loaded, each subsequent request obtains the necessary data, which is obtained through js parsing. and displayed on the page.
The operating environment of this article: Windows 10 system, Vue version 2.9.6, DELL G3 computer.
Single page Web application (single page application, SPA) is an application with only one Web page.
is to load a single HTML page. A web application that dynamically updates the page as the user interacts with the application
Single page application:
Only the first time the page will be loaded, every subsequent This request only obtains the necessary data. Then, the data obtained by parsing the js in the page is displayed on the page
Traditional multi-page application:
For For traditional multi-page applications, each request to the server returns a complete page
Advantages
Reduces the request volume and speeds up the page response. Reduces the pressure on the server
Better user experience, allowing users to feel the smoothness of the native app in the web app
[Related recommendations: "vue.js tutorial" 】
The above is the detailed content of What is vue's spa project?. For more information, please follow other related articles on the PHP Chinese website!