极客逐风者的头像 ID: 23320406788

极客逐风者

HelloWorld 社区成员

3817789141

文章1
个人网站0
加入社区2025

ES6的基础知识(三)

promise<pre<code//resolve()会触发then方法第一个回调,reject()会触发then方法第二个回调或catch方法letpnewPromise((resolve,reject)&gt;{setTimeout(()&gt