随笔分类 - Vue
前端vue
摘要:安装node环境 官网地址:http://nodejs.cn/download/ 我选择版本:v16.16.0 修改npm镜像地址 # 查看镜像地址 npm config get registry # 设置镜像地址 npm config set registry https://registry.n
阅读全文
摘要:解决方法 在package.json中的rules下加入 "no-unused-vars":"off" 即可
阅读全文
摘要:Vuex 定义 Vuex 是集中式存储管理应用的所有组件的状态(数据) 作用 可实现任意组件之间的通讯 特点 当不同的组件需要对同一个状态进行读写时,或者复用的状态较多 能够保持数据和页面是响应式的 便于开发和后期数据维护 安装 cnpm install --save vuex 创建 /store/
阅读全文
摘要:query 传参 字符串 <router-link :to="`/course/front?text=${text}`" active-class="active"> 前端 </router-link> 对象 <router-link :to="{ path: '/course/front', qu
阅读全文
摘要:创建Vue脚手架 Vue脚手架是官方提供的标准化开发工具(最新4.x版本) 网址:https://cli.vuejs.org/zh/guide/ 安装 使用淘宝镜像源安装 npm install --location=global cnpm --registry=https://registry.n
阅读全文
摘要:官方地址 地址:https://cn.vuejs.org/ 安装Vue库 地址:https://v2.cn.vuejs.org/v2/guide/installation.html 安装浏览器调试工具 另外一种方式 安装Vue-devtools 克隆gitee项目 https://gitee.com
阅读全文
