56

你需要知道的单页面路由实现原理

 5 years ago
source link: https://juejin.im/post/5ae95896f265da0b84553bd7
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.
前言 最近开发的埋点项目,需要记录用户行为轨迹即用户页面访问顺序。需要在页面跳转的时候,记录用户访问的信息(比如 url ,请求头部等),非单页面应用可以给 window 对象加上一个 beforeunload 事件,在页面离开时触发采集开关,但是现在很多业务

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK