随笔分类 - Vue3
vue3相关笔记
-
五、Vue3笔记
摘要:一、基础 Vue3笔记 文本模板<span>Message: {{ msg }}</span> 原始html<p>Using v-html directive: <span v-html="rawHtml"></span></p> 一次性插值<span v-once>这个将不会改变: {{ msg 阅读全文
-
四、Vue中使用axios
摘要:安装包:yarn add axios 导入axios:import axios from 'axios' 编写代码请求 var a = axios.create({ baseURL: 'http://localhost:8080', timeout: 1000, headers: { 'X-Cust 阅读全文
-
三、Vue组件间传值
摘要:父组件传递给子组件(单向数据流) 父组件页面在引用子组件的地方写上属性值 <template> <div class="home"> <img alt="Vue logo" src="../assets/logo.png"> <HelloWorld msg="Welcome to Your Vue. 阅读全文
-
二、Vue项目目录结构
摘要:├── babel.config.js // 配置文件 ├── cypress.json ├── jest.config.js ├── package.json // 项目依赖描述文件 ├── public // 静态内容 │ ├── favicon.ico │ ├── img │ │ └── ic 阅读全文
-
一、Vue环境
摘要:下载安装nvm nvm安装node npm安装yarn yarn安装@vue/cli vue create 项目名 yarn 下载依赖包 yarn run server 运行项目 阅读全文