获得徽章 0
赞了这篇文章
赞了这篇文章
赞了这篇文章
赞了这篇沸点
关于前端路由的history模式,我看到很多文章都讲到在popstate监听路由变化,但是pushsate方法不会触发popstate事件,所以前端监测路由变化从而渲染不同html的方法不能完全写在popstate回调里面,pushstate后也需要主动调用
评论
6
赞了这篇文章
赞了这篇文章