摘要: 封装Promise与定时器demo 问:封装一个函数,参数是定时器的时间,.then执行回调函数。 答:(这个函数是promise)下面封装promise // 封装 function fn(time) { return new Promise(function(resolve){ setTimeo 阅读全文
posted @ 2019-11-17 16:59 LALAYU 阅读(1638) 评论(0) 推荐(1) 编辑
摘要: 第一次用git,遇到这个错误提示,原来是这样的: fatal: Not a git repository (or any of the parent directories): .git This tells you that the directory you're in is not a git 阅读全文
posted @ 2019-11-17 14:09 LALAYU 阅读(776) 评论(0) 推荐(0) 编辑