会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
是桂
life begins at the end of your comfort zone
博客园
首页
新随笔
联系
管理
订阅
2020年7月14日
promise错误处理的三种方法
摘要: promise碰到then,也就是resolve或者reject的时候是异步的,所以try...catch对它是没有用的 1、then(resolve,reject); then方法中第二个回调,是失败时候做的失败时候做的事 function f(val){ return new Promise((
阅读全文
posted @ 2020-07-14 00:10 是桂
阅读(12940)
评论(0)
推荐(0)
公告