下面代码什么意思啊
class A{
static instance(...args) {
this.i = this.i || new this(...args)
return this.i
}
this.i = this.i || new this(...args)完全看不懂啊,这里this.i是个什么鬼
new this(...args)又是什么?
繁星coding
相关分类