17

原生实现前端路由

 4 years ago
source link: https://juejin.im/post/5e395994f265da573e6713eb
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
在 Web SPA 中,前端路由描述的 URL 与 UI 之间的单向映射关系,即 URL 变化引起 UI 页面的更新(无需刷新页面)。 核心问题 上面我们提到,在前端路由中,当 URL 发生变化时,我们需要在不刷新页面的情况下,触发 UI 页面的更新。因此,在

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK