摘要: 1、router-link (1)不带参数 <router-link :to="{name:'home'}"> <router-link :to="{path:'/home'}"> //name,path都行, 建议用name // 注意:router-link中链接如果是'/'开始就是从根路由开始 阅读全文
posted @ 2021-05-07 20:22 李起桉 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 安装express npm install express -g 如上我们使用 node 的 npm 安装了 express 框架后,并不会顺带着把 express 脚手架安装。此时,如果直接输入 express 会进行报错,即关键字不识别(环境变量中没有express.exe)。 需要输入如下命令 阅读全文
posted @ 2021-05-07 16:37 李起桉 阅读(1280) 评论(0) 推荐(0) 编辑