摘要: 1.axios安装 npm install axios import axios from 'axios' 2.axios使用 使用格式是 1.axios({配置信息}).then(res=>{console.log(res)}).catch(err=>{console.log(err)}) //r 阅读全文
posted @ 2020-01-30 01:34 真御剑随风 阅读(284) 评论(0) 推荐(0)
摘要: 1. 在路由文件 router --> index.js中,设置base:'/内部设置的词汇/',会同步在网页地址的前端 2.嵌套路由:在router --> index.js中,设置新增单个路由属性childron,为数组,内部放入的单路由为该路由的子路由 1 import Vue from 'v 阅读全文
posted @ 2020-01-27 16:49 真御剑随风 阅读(144) 评论(0) 推荐(0)