摘要: JS for in 循环不执行问题 待记录 阅读全文
posted @ 2020-09-14 00:24 hasic 阅读(511) 评论(0) 推荐(0)
摘要: git修改提交人的姓名及邮箱(在提交记录展示的信息) 法一:使用命令修改git的用户名和提交的邮箱 1)修改全局 如果你要修改当前全局的用户名和邮箱时,需要在上面的两条命令中添加一个参数,--global,代表的是全局。 命令分别为:git config --global user.name 你的目 阅读全文
posted @ 2020-09-12 18:09 hasic 阅读(1255) 评论(0) 推荐(0)
摘要: mongoDB 异常 1.问题描述 所有接口查询数据异常 2.定位问题 查看日志,发现所有数据库操作报错,按时间顺序如下: 1.多次调用查询返回,再调用报错 find Error:MongoNetworkError: write EPIPE 2.再之后的报错 Error:MongoError: se 阅读全文
posted @ 2020-09-02 07:42 hasic 阅读(298) 评论(0) 推荐(0)
摘要: 1.原链接可能在国外,或本地网络问题 https://mobile.ant.design/index-cn 2.使用国内码云链接: https://antd-mobile.gitee.io/components/list-cn/ 阅读全文
posted @ 2020-08-23 23:13 hasic 阅读(9783) 评论(0) 推荐(0)
摘要: 1.问题描述 for in循环的index值与某值求余数,一直不等于0,代码如需: for (const index in slicedArr) { comm.log('(index+1)%5=='+(index+1)%5) if((index+1)%5 != 0){ continue } ... 阅读全文
posted @ 2020-08-22 18:05 hasic 阅读(195) 评论(0) 推荐(0)
摘要: 转载自:https://segmentfault.com/q/1010000006658882 简单说,for in是遍历键名,for of是遍历键值。例如: let arr = ["a","b"]; for (a in arr) { console.log(a);//1,2 } for (a of 阅读全文
posted @ 2017-06-18 08:15 hasic 阅读(251) 评论(1) 推荐(0)
点击右上角即可分享
微信分享提示