then 和 catch 中返回 promise,会在这个 promise resolve 或 reject 的时候,把 resolve 或 reject 的结果作为参数传给后面的 then 或 catch。
如果返回普通类型的值,就直接作为参数传给下一个 then。
转载于:https://www.cnblogs.com/flypopo/p/9910729.html
then 和 catch 中返回 promise,会在这个 promise resolve 或 reject 的时候,把 resolve 或 reject 的结果作为参数传给后面的 then 或 catch。
如果返回普通类型的值,就直接作为参数传给下一个 then。
转载于:https://www.cnblogs.com/flypopo/p/9910729.html