摘要: Vue 命名路由 routes设置name属性 router-link的to属性设置对应的name routes配置 import VueRouter from 'vue-router' import Island from '../pages/Island' import IslandMessag 阅读全文
posted @ 2022-02-14 22:27 IslandZzzz 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Vue 嵌套路由 嵌套路由,也叫做多级路由 routes配置项里配好children属性 然后子路由组件中使用router-link和router-view标签即可 案例 routes.js import VueRouter from 'vue-router' import Island from 阅读全文
posted @ 2022-02-14 22:25 IslandZzzz 阅读(2036) 评论(0) 推荐(0) 编辑
摘要: Vue 路由 概念与基本使用 vue-router: vue的一个插件,专门来实现spa应用 关于spa应用的理解 单页应用 single page application 整个应用只有一个完整的页面 点击页面的导航,只会做局部更新 通过ajax请求数据 路由的理解 什么是路由 一个路由就是一组映射 阅读全文
posted @ 2022-02-14 22:24 IslandZzzz 阅读(754) 评论(0) 推荐(0) 编辑
摘要: const a = {query:{b:1}} const {query:{b}} = a console.log(b) // 1 const t = {query:{b:{d:{e:2,f:3}}}} const {query:{b:{d:{e}}}} = t const {query:{b:{d 阅读全文
posted @ 2022-02-14 22:00 IslandZzzz 阅读(645) 评论(0) 推荐(0) 编辑