随笔分类 - 前端
摘要:ES6 预览 VUE2 预览 webcomponents 预览 ES6 2019 pdf下载: https://files.cnblogs.com/files/pengchenggang/javascript-cheatsheet-2019-lenguajejs.com.pdf.lin.zip we
阅读全文
摘要:"echarts": "^5.2.2", ChartSituation1 <template> <div> <EChartTemplate1 ref="eChartTemplate1Ref"></EChartTemplate1> </div> </template> <script> import
阅读全文
摘要:这个文档 不涉及eslint 只专注自动格式化 格式化个性化需求: js中 自动去分号 js中 双引号变单引号 最大空换行数 是2 vue template中 属性自动折行 vue 的自动格式化 需要用到vetur插件,它可以对vue的 template script css 单独进行设置 sett
阅读全文
摘要:JSDoc vue-jsdoc vscode
阅读全文
摘要:index.html <script type='text/javascript' src='<%= BASE_URL %>config.js?${Math.random().toString(36).substr(2)}'></script> <% if (process.env.NODE_ENV
阅读全文
摘要:Nexus npm 搭建私有仓库 很好很强大 https://www.jianshu.com/p/e437d8e694a0 主要想到这个包的话比较大 所以要是有个私有仓库 就方便许多 https://www.electronjs.org/ npm i nrm -g nrm ls nrm use [仓
阅读全文
摘要:const ruleNumber2DecimalPlaces = [ { required: true, trigger: 'blur,change', message: '不能为空' }, { validator: (rule, value, callback) => { let reg = /^
阅读全文
摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/Window/postMessage
阅读全文
摘要:思路:botton 加一个class 每个右边加个竖线,最后一个不加。 用起来很方便 <template slot="handle" slot-scope="{ row, index }"> <Button type="primary" v-if="row.parentItemId '0'" gho
阅读全文
摘要:英文 | https://javascript.plainenglish.io/13-methods-to-remove-filter-an-item-in-an-array-and-array-of-objects-in-javascript-f02b71206d9d 翻译 | 杨小爱 我们可能总
阅读全文
摘要:columns.js export default [ { title: '选择', slot: 'choose', align: 'center', width: 100 }, table里面 <template slot="choose" slot-scope="{ row, index }">
阅读全文
摘要:需求 自动格式化需求 多行回车 合并一行,去分号 最后一个逗号,自动删除,符合eslint 结果 虽然能用了,但是 百度好几个方案,也不知道哪个对哪个,太忙没时间弄了。 配置文件记录 eslint 得装 vetur 得装 prettier 得装 Beautify v1.5.0 得装 这个很重要 装了
阅读全文
摘要:修正1 "javascript.format.enable": true, // 这里false 改true 修正2 注释掉这个地方 // "[javascript]": { // "editor.defaultFormatter": "dbaeumer.vscode-eslint" // }, 2
阅读全文
摘要:git svn 提交代码日志填写规范 BUG NEW DEL CHG TRP gitz 日志z
阅读全文
摘要:husky 7 的安装,注意下版本 第一步 安装 cnpm install husky@7.0.4 --save-dev 第二步 在package.json script加入 "prepare": "husky install", 第三步 执行下 npm run prepare 第四步 添加hook
阅读全文
摘要:export const apiDown = (url, data = {}) => { let data2 = secretFilter(data) axiosDown({ url, params: data2, method: 'get', responseType: 'blob', heade
阅读全文
摘要:fatal: unable to access 'http://192.168.111.111:8086/111_1/Org/product/web.git/': Failed to connect to 127.0.0.1 port 52520: Connection refused 等于是 蓝灯
阅读全文
摘要:vscode git冲突 1. git stash 2. 更新代码 3. git stash pop 4.提交代码
阅读全文
摘要:<template> <span style="width: 200px; display: inline-block;"> <Input v-model="inputNumberValue" :disabled="disabled" @on-keyup="keyup" @on-blur="blur
阅读全文