摘要: 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)