摘要: Promise基本使用 new Promise((resolve,reject)=>{ resolve() }).then(res=>{ }).catch(err=>{ }).finally(()=>{ }) then和catch方法 Promise 的状态一经改变就不能再修改。 .then 和 . 阅读全文
posted @ 2020-10-02 23:06 mingL 阅读(429) 评论(0) 推荐(0) 编辑