摘要: 1.hash模式的简单实现 使用锚点跳转+监听hashChange事件 2.history模式的简单实现 因为使用history.pushState不会刷新页面,故使用history.pushState+监听pushState事件 关于history模式刷新页面404的问题,因为刷新页面之后相当于在 阅读全文
posted @ 2022-11-22 19:21 zoo-x 阅读(18) 评论(0) 推荐(0) 编辑