摘要:
Promise接收一个函数为参数,传入了两个内部的方法resolve和reject,然后用then注册回调函数,手动调用resolve或reject就可以依次执行then的回调,并且给回调函数传值。如果then返回的也是Promise,同样的,手动调用resolve或reject后,才会继续往下执行。 阅读全文
posted @ 2020-12-29 23:09
wangmeijian
阅读(1311)
评论(0)
推荐(2)
浙公网安备 33010602011771号