try catch的性能比较是想和promise的then catch比较。因为用try catch使用时遇到promise会先加入任务队列,后期执行时会恢复当时上下文,比较耗时。我记得是这个原因
点赞 评论

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务