代码如下:Promise.prototype.done=function(onFulfilled,onRejected){this.then(onFulfilled,onRejected).catch(function(reason){//抛出一个全局错误setTimeout(()=>{throwreason},0);});};
Promise.prototype.done=function(onFulfilled,onRejected){this.then(onFulfilled,onRejected).catch(function(reason){//抛出一个全局错误setTimeout(()=>{throwreason},0);});};
this.then(onFulfilled,onRejected).catch(function(reason){//抛出一个全局错误setTimeout(()=>{throwreason},0);});};
.catch(function(reason){//抛出一个全局错误setTimeout(()=>{throwreason},0);});};
//抛出一个全局错误setTimeout(()=>{throwreason},0);});};
setTimeout(()=>{throwreason},0);});};
});};
};
江户川乱折腾
一只斗牛犬
相关分类