vue-router中的hash和history两种模式的区别【点击查看详情】
vue-router中的hash和history两种模式的区别:众所周知,vue-router有两种模式,hash模式和history模式,这里来谈谈两者的区别。 hash模式 hash模式背后的原理是onhashchange事件,可以在window对象上监听这个事件: window.onhashchange = function(event){ console.lo
相关视频/文章