However, if you're in any other asynchronous callback, you must use reject . For example, this won't trigger the catch: new Promise(function() { setTimeout( ...
確定! 回上一頁