Promise 对象用于表示一个异步操作最终完成(或失败)及其结果值 语法 new Promise( function (resolve, reject) {...} /* executor */ )) 参数 executor executor是带有resolve和reject两个参数的函数。