vue prod 环境 怎么去掉#!
摘要:众所周知,vue-router有两种模式,hash模式和history模式。 hash模式 hash模式背后的原理是onhashchange事件,可以在window对象上监听这个事件: window.onhashchange = function(event){ console.log(event.
阅读全文
posted @ 2017-11-27 10:36
posted @ 2017-11-27 10:36
posted @ 2017-11-07 17:24