会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
musicBird
菜鸟级别的前端开发者
博客园
首页
新随笔
联系
订阅
管理
2022年4月6日
Promise的then和catch如何影响状态的变化
摘要: 记住两句话: 1.then正常返回resolved,里面有报错返回reject 1 const p1 = Promise.resolve().then(()=>{ 2 console.log(123) 3 }) 4 5 console.log('p1',p1) //此时的状态是resolve,后面可
阅读全文
posted @ 2022-04-06 10:54 musicBird
阅读(116)
评论(0)
推荐(0)
公告