摘要: 方式一:stats对象 方式二:friendly-errors-webpack-plugin插件 npm i --save-D friendly-errors-webpack-plugin webpack.config.js plugins: [ new FriendlyErrorsWebpackP 阅读全文
posted @ 2021-04-09 16:35 玛卡巴鉲 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 一:module的引入方式 之前引用的方式: const CleanWebpackPlugin = require('clean-webpack-plugin'); new CleanWebpackPlugin(), 5 引用的方式 const { CleanWebpackPlugin } = re 阅读全文
posted @ 2021-04-09 15:12 玛卡巴鉲 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 工作之余,想自己配一把webpack。热更新卡了半天,直接上代码(标红部分是重点): webpack.config.js const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); c 阅读全文
posted @ 2021-04-09 14:03 玛卡巴鉲 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: 下面一些链接都是作者在遨游网站的时候收藏的,hahah。不间断更新~~ 字节跳动最爱考的 64 道算法题(JS版) 17K star 仓库,解决 90% 的大厂基础面试题 前端进阶之必会的JavaScript技巧总结 猛增 110K Star!年增长数最多的 10 大顶级前端学习资源项目! 面试大纲 阅读全文
posted @ 2021-04-06 15:08 玛卡巴鉲 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Vuex状态机制,一刷新就会重置,解决问题的方式一般都是存储起来(session/local Storage),vuex-persistedstate插件帮我们集成了这些功能。 更多参数配置详情点击:npm,github npm install vuex-persistedstate --save 阅读全文
posted @ 2021-04-06 13:38 玛卡巴鉲 阅读(1375) 评论(4) 推荐(0) 编辑
摘要: npm:https://www.npmjs.com/package/vue-codemirror npm install vue-codemirror --save main.js import Vue from 'vue' import VueCodemirror from 'vue-codemi 阅读全文
posted @ 2021-04-06 13:25 玛卡巴鉲 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: var test1="http://www.w3school.com.cn/My first/" document.write(encodeURIComponent(test1)+ "<br />") document.write(decodeURIComponent(test1)) var str 阅读全文
posted @ 2021-03-10 16:43 玛卡巴鉲 阅读(576) 评论(0) 推荐(0) 编辑
摘要: x按介绍两个cdn网址: 1.https://cdn.baomitu.com/ 2.https://www.jsdelivr.com/ Vue的各种版本介绍: 1. cjs(两个版本都是完整版,包含编译器) vue.cjs.js vue.cjs.prod.js(开发版,代码进行了压缩) 2. glo 阅读全文
posted @ 2021-03-03 14:39 玛卡巴鉲 阅读(3974) 评论(0) 推荐(1) 编辑
摘要: 关键属性方法: 1.reserve-selection:仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的数据(需指定 row-key) 2.row-key:唯一标识 3.selection-change:当选择项发生变化时会触发该事 阅读全文
posted @ 2021-02-20 18:05 玛卡巴鉲 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1.path带"/" { path: "/workbench", name: "workbench", meta: { title: "name", icon: "receiving" }, component: () => import(/* webpackChunkName: "dashboar 阅读全文
posted @ 2021-02-19 15:41 玛卡巴鉲 阅读(294) 评论(0) 推荐(0) 编辑