单页应用 (SPA) 是一种 Web 应用或网站,它通过动态重写当前页面而不是从服务器加载整个新页面来与用户交互。这种方法避免了连续页面之间用户体验的中断,使应用的行为更像桌面应用。
¥A Single-Page Application (SPA) is a web application or web site that interacts with the user by dynamically rewriting the current page rather than loading entire new pages from a server. This approach avoids interruption of the user experience between successive pages, making the application behave more like a desktop application.
在 SPA 中,相应的资源会根据需要动态加载并添加到页面中,通常是响应用户操作。页面在处理过程中的任何时间点都不会重新加载,控制权也不会转移到其他页面,尽管可以使用位置哈希或 HTML5 History API(根据 /quasar.config
文件中的 Vue Router 模式使用其中一种)来提供应用中单独逻辑页面的感知和可导航性。
¥In a SPA the appropriate resources are dynamically loaded and added to the page as necessary, usually in response to user actions. The page does not reload at any point in the process, nor does control transfer to another page, although the location hash or the HTML5 History API (using one or the other based on your Vue Router mode in the /quasar.config
file) can be used to provide the perception and navigability of separate logical pages in the application.
与单页应用的交互通常涉及与后台 Web 服务器的动态通信。
¥Interaction with the single page application often involves dynamic communication with the web server behind the scenes.