vue 脚手架环境搭建
摘要:1.安装node.js #执行完,在系统的环境变量,增加path:D:\Program Files\node_global npm config set prefix "D:\Program Files\node_global" npm config set cache "D:\Program Fi
阅读全文
posted @
2022-01-23 21:13
biind
阅读(59)
推荐(0) 编辑
json-server 环境搭建及使用方法
摘要:1.安装npm 2.安装json-server 3.使用 1.安装npm 下载node.js,地址:https://nodejs.org/zh-cn/ 这里的基础知识,比如:配置淘宝仓库,配置npm的目录等,不描述,这是基础知识。 2.安装json-server 安装命令:npm install j
阅读全文
posted @
2021-11-16 19:08
biind
阅读(678)
推荐(0) 编辑
vue 主题工具生成
摘要:1.全局安装工具 npm i element-theme@2.0.1 -g 2.当前目录安装 2.1 npm init 2.2 安装主题 npm i element-theme-chalk@2.15.0 3.编译主题 3.1 生成element-variables.scss et -i 3.2 编译
阅读全文
posted @
2021-03-30 19:38
biind
阅读(106)
推荐(0) 编辑
vue sass 入门(使用场景:改变elementui默认主题色)
摘要:直接运行npm install sass-loader npm install node-sass 因为版本不对,各种报错 1.sass淘宝安装镜像:npm config set sass_binary_site https://npm.taobao.org/mirrors/node-sass/ 2
阅读全文
posted @
2021-03-29 16:03
biind
阅读(130)
推荐(0) 编辑
element主题生成工具
摘要:下载地址: https://files.cnblogs.com/files/ligenyun/element%E4%B8%BB%E9%A2%98%E7%94%9F%E6%88%90%E5%B7%A5%E5%85%B7.rar 1.安装elementui的自定义主题工具 npm i element-t
阅读全文
posted @
2021-02-20 17:03
biind
阅读(429)
推荐(0) 编辑
nvm 安装及使用(npm版本管理工具)
摘要:C:\Users\Administrator\AppData\Roaming\nvm node_mirror: https://npm.taobao.org/mirrors/node/npm_mirror: https://npm.taobao.org/mirrors/npm/ nvm instal
阅读全文
posted @
2021-02-20 14:53
biind
阅读(186)
推荐(0) 编辑
webpack入门四 安装vue,并打包
摘要://vue开发 npm install vuewebpack.config.js const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyPlugin = require("copy-webpack-plugin");
阅读全文
posted @
2021-02-07 16:25
biind
阅读(68)
推荐(0) 编辑
webpack 相关
摘要:const HtmlWebpackPlugin = require('html-webpack-plugin'); const CopyPlugin = require("copy-webpack-plugin"); const {CleanWebpackPlugin} = require("cle
阅读全文
posted @
2021-02-07 16:07
biind
阅读(74)
推荐(0) 编辑
webpack 入门三 打包css、图片、静态资源
摘要://搭建环境 //package.json文件 npm init //安装webpack npm install webpack -g npm install webpack-cli -g //插件 npm install html-webpack-plugin --save-dev npm ins
阅读全文
posted @
2021-02-05 21:10
biind
阅读(146)
推荐(0) 编辑
webpack 入门二 webpack.config.js 用配置打包js
摘要://搭建环境 //package.json文件 npm init //安装webpack npm install webpack -g npm install webpack-cli -g //简单打包 webpack ./a.js ./bundle.js //插件 npm install html
阅读全文
posted @
2021-02-05 20:52
biind
阅读(103)
推荐(0) 编辑
webpack 入门一 简单打包js
摘要://搭建环境 //package.json文件 npm init //安装webpack npm install webpack -g npm install webpack-cli -g //简单打包 webpack ./a.js ./bundle.js
阅读全文
posted @
2021-02-05 20:47
biind
阅读(59)
推荐(0) 编辑
vuex-persistedstate 持久化 刷新后数据不丢失
摘要:1.vuex保持的数据,在页面刷新后,丢失 2.vuex-persistedstate 解决持久化问题 一 安装 npm install --save vuex-persistedstate 二 配置 底层:sessionStorage / cookie import Vue from 'vue'
阅读全文
posted @
2020-10-12 08:10
biind
阅读(581)
推荐(0) 编辑
vuex 基础用法
摘要:1.安装 npm install vuex --save 2.引入 a) 新增store/store.js b)main.js,引入 3.使用 <button @click="$store.commit('add')">+</button><button @click="$store.commit(
阅读全文
posted @
2020-10-06 11:22
biind
阅读(122)
推荐(0) 编辑
webpack 打包js css html image
摘要:1.安装webpack npm install webpack webpack-cli -g npm install webpack webpack-cli --save-dev 2.安装css插件 .npm i css-loader style-loader 3.安装html插件 npm i -D
阅读全文
posted @
2020-09-30 14:09
biind
阅读(155)
推荐(0) 编辑
vue axios 基础用法
摘要:1.安装 2.使用 1.安装 npm install axios --save npm install qs.js --save import axios from 'axios' import qs from 'qs' Vue.prototype.$axios = axios //全局注册,使用方
阅读全文
posted @
2020-03-29 22:16
biind
阅读(346)
推荐(0) 编辑
vue脚手架 IE11 打开报错问题
摘要:原因:vuex 用到ES6语法,IE不支持。 解决步骤 1.安装babel-polyfill npm install --save -dev babel-polyfill 2.引入,在引入vuex之前引入 import 'babel-polyfill' 举例1: 在main.js引入 import
阅读全文
posted @
2020-03-18 15:37
biind
阅读(442)
推荐(0) 编辑
vue 路由使用
摘要:1.安装 2.使用 3.router几个用法 一 安装 npm安装 npm install vue-router 二 使用 1.绑定vue对象 2.异步加载组件 component: () => import('../views/mysetting/person') <script> import
阅读全文
posted @
2020-03-08 16:48
biind
阅读(221)
推荐(0) 编辑
vue 声明式埋点
摘要:1.vue入口,新增命令 2.页面暴露埋点 // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf wit
阅读全文
posted @
2020-03-05 20:08
biind
阅读(588)
推荐(0) 编辑
vue 按模块加载路由
摘要:步骤: 1.模块一:路由数组1 2.模块二:路由数组2 3.将路由数组1和路由数组2,添加到框架路由对象 import Vue from 'vue' import Router from 'vue-router' Vue.use(Router) let myroutes = [] let conca
阅读全文
posted @
2020-02-22 17:58
biind
阅读(627)
推荐(0) 编辑