摘要:
封装Promise与定时器demo 问:封装一个函数,参数是定时器的时间,.then执行回调函数。 答:(这个函数是promise)下面封装promise // 封装 function fn(time) { return new Promise(function(resolve){ setTimeo 阅读全文
摘要:
第一次用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 阅读全文