摘要:
1 案例效果 2 案例所涉及知识点 3 初始项目 npm install npm audit fix npm run serve http://localhost:8080/ 4 安装和配置路由 新建终端,安装vue-router 安装成功后关闭该终端即可 5 基于路由渲染登录组件 6 模拟登录功能 阅读全文
posted @ 2021-11-28 20:55
yub4by
阅读(66)
评论(0)
推荐(0)
摘要:
4 声明式导航、编程式导航 location.href属于js,不是vue特有的 4-1 vue-router中的编程式导航API 4-2 API#1: $router.push 4-3 API#2: $router.replace 4-4 API#3: $router.go 4-5 $router 阅读全文
posted @ 2021-11-28 18:03
yub4by
阅读(47)
评论(0)
推荐(0)