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