摘要: 前端路由分两种,一种是通过html5的api实现的,history.pushState和history.replaceState,会触发popstate事件 另外一种是通过改变hash来实现,触发hashchange事件。url中带上# 阅读全文
posted @ 2020-06-30 18:01 yupire 阅读(252) 评论(0) 推荐(0) 编辑