Why can't I access constructor's value

后端 未结 0 952
无人及你
无人及你 2021-02-12 05:29

I have the following code:

const PENDING = 0;
const RESOLVE = 1;
const REJECT = 2;

class simplePromise {

  constructor(resolveFn) {
    this.val = 1;
    this.s         


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