摘要:
安装包:yarn add axios 导入axios:import axios from 'axios' 编写代码请求 var a = axios.create({ baseURL: 'http://localhost:8080', timeout: 1000, headers: { 'X-Cust 阅读全文
posted @ 2022-07-01 19:16
仓鼠不爱吃辣条
阅读(34)
评论(0)
推荐(0)
摘要:
父组件传递给子组件(单向数据流) 父组件页面在引用子组件的地方写上属性值 <template> <div class="home"> <img alt="Vue logo" src="../assets/logo.png"> <HelloWorld msg="Welcome to Your Vue. 阅读全文
posted @ 2022-07-01 19:01
仓鼠不爱吃辣条
阅读(38)
评论(0)
推荐(0)
摘要:
├── babel.config.js // 配置文件 ├── cypress.json ├── jest.config.js ├── package.json // 项目依赖描述文件 ├── public // 静态内容 │ ├── favicon.ico │ ├── img │ │ └── ic 阅读全文
posted @ 2022-07-01 17:19
仓鼠不爱吃辣条
阅读(162)
评论(0)
推荐(0)
摘要:
下载安装nvm nvm安装node npm安装yarn yarn安装@vue/cli vue create 项目名 yarn 下载依赖包 yarn run server 运行项目 阅读全文
posted @ 2022-07-01 17:11
仓鼠不爱吃辣条
阅读(35)
评论(0)
推荐(0)
浙公网安备 33010602011771号