关于url里德'/#!/'的问题
发布于 9 年前 作者 QuoniamYIF 4306 次预览 最后一次回复是 9 年前 来自 问答
这是本地启动(`npm run dev’),vue-hackernews的首页url,以及live demo的url
http://localhost:8080/#!/news/1
http://vuejs.github.io/vue-hackernews/#!/news/1
里面为什么会有/#!/,这是干什么用的?
2 回复
这是本地启动(`npm run dev’),vue-hackernews的首页url,以及live demo的url
http://localhost:8080/#!/news/1
http://vuejs.github.io/vue-hackernews/#!/news/1
里面为什么会有/#!/,这是干什么用的?
这是前端本地路由吧
Hash tag. 参考:http://www.zhihu.com/question/19946782