@H_404_0@二级菜单导航是一种很普遍的功能,一般网页都会有这个功能。如果是平常的做法就是改变url,跳到相应的页面;还有一种就是frame。
如果用vue的话,可以用vue-router改变
在线demo:<a rel="nofollow" target="_blank" href="http://runjs.cn/code/9th3cgxo">http://runjs.cn/code/9th3cgxo
html
使用 Vue.js 时,我们就已经把组件组合成一个应用了,当你要把 vue-router 加进来,只需要配置组件和路由映射,然后告诉 vue-router 在哪里渲染它们。
首页