背景 周末闲来无事,随便翻看了一下阮一峰老师的<ES6 标准入门>第2版,ps:之前在阮一峰老师的官网看过电子版,感觉干货满满,所以就买了纸质版:当看到第16章第4节 'Promise.prototype.catch()'时,遇到了一个小困惑,下面我们来一起看一下 开胃汤 首先,Promise.prototype.catch方法是用来'捕获Promise回调函数中自然发生或主动抛出的错误',何为自然发生?何为主动抛出? 自然发生的错误: function a() { var x = 1; co
Skip to content Features Business Explore Marketplace Pricing Sign in or Sign up Watch929 Star43,471 Fork3,148 axios/axios CodeIssues 257Pull requests 54Projects 2WikiInsights Dismiss Join GitHub today GitHub is home to over 20 million develo