摘要: Promise方法: 1.Promise.all :主要是判断promise中的所有参数返回是不是resolve,或参数中不包含 promise 时回调完成(resolve)。如果有一个返回reject,此实例回调失败(reject) Promise.all(iterable); iterable 阅读全文
posted @ 2020-09-24 17:22 web~Song 阅读(73) 评论(0) 推荐(0) 编辑
摘要: git init # 初始化本地git仓库(创建新仓库) git config --global user.name "xxx" # 配置用户名 git config --global user.email "xxx@xxx.com" # 配置邮件 git config --global color 阅读全文
posted @ 2020-09-24 14:28 web~Song 阅读(178) 评论(0) 推荐(0) 编辑
摘要: Promise 对象是由关键字 new 及其构造函数来创建的。该构造函数会把一个叫做“处理器函数”(executor function)的函数作为它的参数。这个“处理器函数”接受两个函数——resolve 和 reject ——作为其参数。当异步任务顺利完成且返回结果值时,会调用 resolve 函 阅读全文
posted @ 2020-09-24 14:26 web~Song 阅读(163) 评论(0) 推荐(0) 编辑