摘要: getEN () { const arr = [] for (let i = 65; i < 91; i++) { arr.push(String.fromCharCode(i)) } return arr } 阅读全文
posted @ 2021-11-10 08:39 YINGYAN 阅读(616) 评论(0) 推荐(0) 编辑
摘要: (一)Found ‘electron’ but not as a devDependency, pruning anyway 原因:对electron没有严格要求的话可以忽略,不影响打包,但会影响第三方库的使用,应使用推荐库进行打包。 修改 .electron-vue/webpack.rendere 阅读全文
posted @ 2021-09-18 11:12 YINGYAN 阅读(719) 评论(0) 推荐(0) 编辑
摘要: 1、安装 Inno Setup 官网:https://jrsoftware.org/isinfo.php 2、打开 Inno Setup ,点击如下图Compli32.exe(首次安装默认打开) 3、打开后如图 4、点击图中 Cancel 按钮 5、点击图中 File 6、在 File 的下拉菜单中 阅读全文
posted @ 2021-08-03 11:52 YINGYAN 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 1、npm安装 npm install @babel/plugin-proposal-optional-chaining // 可选链运算符 ?. npm install @babel/plugin-proposal-nullish-coalescing-operator // 空值合并运算符 ?? 阅读全文
posted @ 2021-06-07 10:23 YINGYAN 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: { "editor.tabSize": 2, "editor.fontSize": 18, "editor.wordWrap": "bounded", "editor.wordWrapColumn": 160, "vetur.format.defaultFormatter.html": "js-be 阅读全文
posted @ 2021-06-04 15:38 YINGYAN 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 1、递归 function deepCope (obj) { // 要拷贝的数据为引用类型属性(数组或对象) if (obj && typeof obj 'object') { const copeObj = Array.isArray(obj) ? [] : {}; // const copeOb 阅读全文
posted @ 2021-04-24 14:32 YINGYAN 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 数组的方法 reduce() reduce方法在数组的每一项元素上都会执行回调函数。 语法:array.reduce( callBack [ , init] ) // 语法arrary.reduce(function(pre, val, ind, arr){ // .... }, init) 回调函 阅读全文
posted @ 2021-04-14 16:21 YINGYAN 阅读(152) 评论(0) 推荐(0) 编辑
摘要: for 多次遍历代码块 const array = []for (var i = 0; i < 5; i++) { array.push(i)}console.log(array) // [0, 1, 2, 3, 4]const arr = [1, 2, 3] for (let i = 0; i < 阅读全文
posted @ 2021-04-13 15:48 YINGYAN 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 一、合并其他分支的commit(A分支中的commit合并至B分支) 切换到A分支,查询commit历史命令行 : $ git log 复制要合并的commit id (如:663802dfb121e0a07603c828acf6c81f29bd75f3) 切换至B分支,合并A的commit id命 阅读全文
posted @ 2021-03-15 16:01 YINGYAN 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 一、获取时间所在周的周一、周五 function getFirstLastDay (time) { let date = new Date(time) let Time = date.getTime() let day = date.getDay() let oneDayTime =24*60*60 阅读全文
posted @ 2021-03-12 15:21 YINGYAN 阅读(2927) 评论(0) 推荐(0) 编辑