Why can't I access constructor's value

后端 未结 0 1091
孤独总比滥情好
孤独总比滥情好 2021-02-12 05:37

I have the following code:

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

class simplePromise {

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


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