'Then' in a custom JavaScript Promise created from scratch is executed before promise resolves. What is the reason?

后端 未结 0 1355
萌比男神i
萌比男神i 2020-12-06 11:07

I am trying to create a simple custom promise from scratch.

For some reason, then is being executed before the onResolve function is called.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题