const then = x.then
if (typeof then === 'function') {
// 1 、 通不过 Promise A+测试
x.then((r) => { ... }, e => { ... })
// 2 、通过 Promise A+测试
then.call(x, (r) => { ... }, e => { ... })
} else {
resolve(x)
}
请教大佬问题出在哪里