摘要: **前端路由(router)的二种模式及区别 ** 答:hash模式和history模式 不同点:1 切换方式不同 hash: window.location.hash = 'qq' // 设置 url 的 hash,会在当前url后加上 '#qq history: window.history.p 阅读全文
posted @ 2022-05-31 22:27 小白张先生 阅读(652) 评论(0) 推荐(0)