js-async-tutorial icon indicating copy to clipboard operation
js-async-tutorial copied to clipboard

then前面返回一个promise

Open kg-web opened this issue 7 years ago • 0 comments

Uploading QQ图片20170511163115.png…

如果前面返回的是Promise对象,后面的then将会被当做这个返回的Promise的第一个then来对待

大师,这句话能不能在解释下,没有 太明白。 还有,你后面又讲到,then必须返回promise,这样then才能链式使用

有些糊涂了

kg-web avatar May 11 '17 08:05 kg-web