代码错误
oneheart初心
这个作者很懒,什么都没留下…
展开
-
GIT推送错误error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
情况一Counting objects: 100% (25515/25515), done.Delta compression using up to 4 threadsCompressing objects: 100% (18794/18794), done.error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)fatal: the remote end hung up unexpecte原创 2021-02-07 22:23:23 · 30831 阅读 · 7 评论 -
Git提交到Github后中文文字乱码
可能原因:1.编译器使用的字符集非UTF-8格式。(如:VSCode右下角的字符集非UTF-8)2.浏览器使用的字符集非UTF-8格式。(Chrome默认为UTF-8)原创 2020-11-01 18:42:02 · 653 阅读 · 0 评论 -
ESLINT 报错 Unnecessary use of boolean literals in conditional expression
ESlint报错:Unnecessary use of boolean literals in conditional expression在使用三元运算符时,如果给定的返回的结果是boolean值则会出现这个错误。假设有如下方法:var a = [1,2,3]function fun(array) {return array.length > 0 ? true : false}console.log(fun(a)) // true错误原因:array.length > 0 这原创 2020-08-04 16:28:06 · 4893 阅读 · 1 评论