摘要: 阅读全文
posted @ 2021-06-04 11:31 半忧夏 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 500报错信息Cannot read property 'split' of null,报错文件node_modules\requires-port\index.js 原因是.env.development里面的地址写错了 比如http://192.168.2.181:8000/写成了http//1 阅读全文
posted @ 2021-05-21 16:37 半忧夏 阅读(3434) 评论(2) 推荐(2) 编辑
摘要: 网上大致提供两种方法glup配置和vscode中使用Easy-LESS,而我找到一个能在微信开发者工具中方便和vscode一样使用Easy-LESS的方法,参考如下: https://www.jb51.net/article/207499.htm 但是配置了setting.json重启微信开发者工具 阅读全文
posted @ 2021-04-15 11:52 半忧夏 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: 代码如下: // 输入处理 let readline = require('readline'); const rl = readline.createInterface({ input: process.stdin, output: process.stdout }); var countLine 阅读全文
posted @ 2021-03-01 09:44 半忧夏 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 题目 解决 思路一:1.使用两个数组,将链表断开,push进入数组中,并构建一个反向数组。2.循环两个数组的前半部分元素,依次重组链表。(蠢办法) 题目要求not modify the values in the list's nodes, only nodes itself may be chan 阅读全文
posted @ 2020-10-21 18:02 半忧夏 阅读(222) 评论(0) 推荐(0) 编辑
摘要: git将一个分支的代码覆盖另一个分支的代码,比如将dev上的代码覆盖test分支上的代码 切换分支到test(git checkout test) 设置远程dev分支的代码到本地test分支(git reset --hard origin/test) 执行上面的命令后test分支上的代码就完全被de 阅读全文
posted @ 2020-10-14 10:17 半忧夏 阅读(2920) 评论(0) 推荐(0) 编辑
摘要: 原来简洁有逻辑的代码会为javaScrip提交大大性能 在leetcode上遇到下面的题目 You are given two non-empty linked lists representing two non-negative integers. The digits are stored i 阅读全文
posted @ 2020-09-28 15:25 半忧夏 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 方法一: this.$router.go(0) // 会出现一段空白页,用户体验不好 方法二: 在app.vue中定义reload()方法 <template> <div id="app"> <router-view v-if="isReload"/> </div> </template> <scr 阅读全文
posted @ 2020-09-20 08:35 半忧夏 阅读(25623) 评论(0) 推荐(0) 编辑
摘要: 题目描述 为 Array 对象添加一个去除重复项的方法 输入 [false, true, undefined, null, NaN, 0, 1, {}, {}, 'a', 'a', NaN] 输出 [false, true, undefined, null, NaN, 0, 1, {}, {}, ' 阅读全文
posted @ 2020-09-14 07:47 半忧夏 阅读(702) 评论(0) 推荐(0) 编辑
摘要: 很好理解得一篇文章 https://www.cnblogs.com/pssp/p/5216085.html 阅读全文
posted @ 2020-09-12 22:37 半忧夏 阅读(109) 评论(0) 推荐(0) 编辑