随笔分类 -  前端

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页
摘要:> navigator@0.1.0 dev H:\2020home\giteez\navigator > node scripts/start.js Compiled successfully! You can now view navigator in the browser. http://lo 阅读全文
posted @ 2022-01-30 15:56 彭成刚 阅读(167) 评论(0) 推荐(0)
摘要:查看当前分支 git branch -vv 查看所有分支 包含远程分支 git branch -a 放弃merge // 这个很重要 git merge --abort 暂存 git stash 拉取 git pull 拉取 git fetch 更新远程的分支 没起作用 git remote upd 阅读全文
posted @ 2022-01-11 11:41 彭成刚 阅读(3067) 评论(0) 推荐(0)
摘要:react 中 动态添加 class,防止图片 重复加载, 主要是 background-image的二次加载会有新请求,和图片的闪烁 let imageTopBg if (imgSrcBg) { const imgSrcBgHeight1 = imgSrcBgHeight ? imgSrcBgHe 阅读全文
posted @ 2021-12-29 10:29 彭成刚 阅读(624) 评论(0) 推荐(0)
摘要:<template> <Select v-model="innerValue" :disabled="disabled" :clearable='clearable' @on-change="onChangeHandle"> <Option v-for="item in this.selectLis 阅读全文
posted @ 2021-12-24 11:36 彭成刚 阅读(109) 评论(0) 推荐(0)
摘要:一个优雅的图片裁剪插件 https://www.npmjs.com/package/vue-cropper http://github.xyxiao.cn/vue-cropper/example/ 阅读全文
posted @ 2021-12-24 08:48 彭成刚 阅读(225) 评论(0) 推荐(0)
摘要:http://pengchenggang.gitee.io/reciterdoc/ 支持中文搜索了,可是不容易了 通过插件 vuepress-plugin-fulltext-search 实现全文搜索 安装依赖 vuepress-plugin-fulltext-search yarn add -D 阅读全文
posted @ 2021-12-21 09:28 彭成刚 阅读(362) 评论(0) 推荐(0)
摘要:ES6 预览 VUE2 预览 webcomponents 预览 ES6 2019 pdf下载: https://files.cnblogs.com/files/pengchenggang/javascript-cheatsheet-2019-lenguajejs.com.pdf.lin.zip we 阅读全文
posted @ 2021-12-13 08:53 彭成刚 阅读(233) 评论(0) 推荐(0)
摘要:"echarts": "^5.2.2", ChartSituation1 <template> <div> <EChartTemplate1 ref="eChartTemplate1Ref"></EChartTemplate1> </div> </template> <script> import 阅读全文
posted @ 2021-12-09 16:23 彭成刚 阅读(1413) 评论(0) 推荐(0)
摘要:这个文档 不涉及eslint 只专注自动格式化 格式化个性化需求: js中 自动去分号 js中 双引号变单引号 最大空换行数 是2 vue template中 属性自动折行 vue 的自动格式化 需要用到vetur插件,它可以对vue的 template script css 单独进行设置 sett 阅读全文
posted @ 2021-11-26 10:36 彭成刚 阅读(1310) 评论(0) 推荐(0)
摘要:接口文档 doclever 阅读全文
posted @ 2021-11-18 11:28 彭成刚 阅读(86) 评论(0) 推荐(0)
摘要:JSDoc vue-jsdoc vscode 阅读全文
posted @ 2021-11-17 19:03 彭成刚 阅读(364) 评论(0) 推荐(0)
摘要:index.html <script type='text/javascript' src='<%= BASE_URL %>config.js?${Math.random().toString(36).substr(2)}'></script> <% if (process.env.NODE_ENV 阅读全文
posted @ 2021-11-17 09:40 彭成刚 阅读(120) 评论(0) 推荐(0)
摘要:Nexus npm 搭建私有仓库 很好很强大 https://www.jianshu.com/p/e437d8e694a0 主要想到这个包的话比较大 所以要是有个私有仓库 就方便许多 https://www.electronjs.org/ npm i nrm -g nrm ls nrm use [仓 阅读全文
posted @ 2021-11-16 16:34 彭成刚 阅读(333) 评论(0) 推荐(0)
摘要:const ruleNumber2DecimalPlaces = [ { required: true, trigger: 'blur,change', message: '不能为空' }, { validator: (rule, value, callback) => { let reg = /^ 阅读全文
posted @ 2021-11-16 15:33 彭成刚 阅读(377) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/zh-CN/docs/Web/API/Window/postMessage 阅读全文
posted @ 2021-11-16 11:09 彭成刚 阅读(44) 评论(0) 推荐(0)
摘要:思路:botton 加一个class 每个右边加个竖线,最后一个不加。 用起来很方便 <template slot="handle" slot-scope="{ row, index }"> <Button type="primary" v-if="row.parentItemId '0'" gho 阅读全文
posted @ 2021-11-12 13:57 彭成刚 阅读(332) 评论(0) 推荐(0)
摘要:英文 | https://javascript.plainenglish.io/13-methods-to-remove-filter-an-item-in-an-array-and-array-of-objects-in-javascript-f02b71206d9d 翻译 | 杨小爱 我们可能总 阅读全文
posted @ 2021-11-11 08:34 彭成刚 阅读(1365) 评论(0) 推荐(0)
摘要:columns.js export default [ { title: '选择', slot: 'choose', align: 'center', width: 100 }, table里面 <template slot="choose" slot-scope="{ row, index }"> 阅读全文
posted @ 2021-11-08 17:04 彭成刚 阅读(501) 评论(0) 推荐(0)
摘要:需求 自动格式化需求 多行回车 合并一行,去分号 最后一个逗号,自动删除,符合eslint 结果 虽然能用了,但是 百度好几个方案,也不知道哪个对哪个,太忙没时间弄了。 配置文件记录 eslint 得装 vetur 得装 prettier 得装 Beautify v1.5.0 得装 这个很重要 装了 阅读全文
posted @ 2021-11-07 11:56 彭成刚 阅读(282) 评论(0) 推荐(0)
摘要:修正1 "javascript.format.enable": true, // 这里false 改true 修正2 注释掉这个地方 // "[javascript]": { // "editor.defaultFormatter": "dbaeumer.vscode-eslint" // }, 2 阅读全文
posted @ 2021-11-02 11:53 彭成刚 阅读(1342) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 27 下一页