
vue 学习记录
文章平均质量分 55
h5433
这个作者很懒,什么都没留下…
展开
-
vscode 添加插件 提示 class
vscode 添加插件完成 css class的名字提示原创 2022-10-26 14:03:48 · 4484 阅读 · 0 评论 -
Jenkins的使用
记录一下lenkins 添加新项目的配置原创 2022-08-18 14:10:39 · 240 阅读 · 0 评论 -
husky+lint-staged 提交前的钩子的配置和git cz 格式化提交
安装 lint-staged和 huskynpm install --save-dev lint-staged husky// 手动启用huskynpx husky install 会生成 .husky 文件夹添加 .husky里面的pre-commit 文件 npx husky add .husky/pre-commit "npm run lint-staged"在根目录添加 lint-staged.config.jsmodule.exports = { "{!(pac原创 2022-03-31 14:43:30 · 1917 阅读 · 0 评论 -
vue3+eslint7.32.0 自动修复规范代码 开发工具 webstorm
安装指定的eslint//package.json 的devDependencies 加上 运行npm i "babel-eslint": "^10.1.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-vue": "^7.13.0",设置eslint 规则文件.eslintrc.js原创 2022-03-29 14:26:39 · 7707 阅读 · 0 评论 -
vue3+stylelint 检查错误和自动修复 开发工具webstorm
vue3+stylelint 检查错误和自动修复 开发工具webstorm安装stylelint设置开发工具在根目录添加stylelint.config.jsstlylelintl 检查效果设置快快捷键自动修复修改效果安装stylelint为了让stylelint能够去兼容vue3,这里需要下载比较多的东西代码片npm i stylelint stylelint-config-html stylelint-config-recommended-scss stylelint-config-rec原创 2022-03-29 14:12:57 · 10071 阅读 · 0 评论 -
vue 前端面试 题目整理
1.es5和es6的区别,说一下你所知道的es6ES6是继ES5之后的一次改进,相对于ES5更加简洁,提高了开发效率 1)let声明变量和const声明常量,两个都有块级作用域 ES5中是没有块级作用域的,并且var有变量提升,在let中,使用的变量一定要进行声明 2)箭头函数 ES6中的函数定义不再使用关键字function(),而是利用了()=>来进行定义 3)模板字符串 模板字符串是增强版的字符串,用反引号(`)标识,可以当作普通字...原创 2021-03-19 13:51:27 · 250 阅读 · 0 评论 -
npm发布组件包并使用(含多个组件)
1.创建vue项目,为了简洁方便,推荐使用webpack-simple构建一个项目vue init webpack-simple ceshinpm installnpm run dev添加控件 components 文件 如图aa.vue页面 写了简单的案例<template> <div class='aa' > {{con}} </div></template><script> export原创 2021-02-12 14:39:37 · 1853 阅读 · 0 评论 -
Vue 组件封装 并使用 NPM 发布 和使用(单个)
1.创建项目vue init webpack-simple npm installnm run dev2.添加控件文件夹 switchButton 里面添加 switch-button.vue页面和index.jsswitch-button.vue 页面里面就和平时写插件一样 没有特别注意的地方index.js 内容如下// switchButton 插件对应组件的名字import switchButton from './switch-button.vue';switchButt原创 2021-02-12 14:11:50 · 481 阅读 · 0 评论 -
创建 vue项目 能同步 git
右键 git bash here输入 git clone 克隆地址复制 .gitignore 排除文件 放在文件根目录# Logslogs*.log# IDEA Files.idea/*.iml# Runtime datapids*.pid*.seed# Directory for instrumented libs generated by jsco...原创 2019-07-22 14:18:04 · 386 阅读 · 0 评论 -
vue 多页面 需要安装glob
案例地址https://github.com/841418659/dome2.git第一步 安装glob npm install glob -save-dev第二步 在src里面创建pages文件夹和index文件夹 把router文件夹app.vue和index.html和main.js放index文件夹里面第三步第四部第五步第六步代码在案例里面有就不拷贝出来了...原创 2019-07-24 21:30:59 · 2397 阅读 · 0 评论 -
vue 多页面多入口 方法一
https://github.com/841418659/dome.githttps://github.com/841418659/dome2.git原创 2019-07-24 18:24:36 · 3497 阅读 · 1 评论 -
vue 打包 根据命令的不同 打包不同的环境
第一步 复制prod.env.js 为prod.test.js第二部 修改webpack.prod.conf.js文件的判断第三步 在打包的时候加上 npm run build testing原创 2019-07-20 00:43:20 · 755 阅读 · 0 评论 -
vue多文件 配置子页面路由 history
服务器文件也要配置 nginx.conf#user nobody;worker_processes 1;#error_log logs/error.log;#error_log logs/error.log notice;#error_log logs/error.log info;#pid logs/nginx.pid;events {...原创 2019-07-29 16:52:35 · 1061 阅读 · 0 评论