复制1const obj = { 2 fn1: () => console.log(this), 3 fn2: function() {console.log(this)} 4} 5 6obj.fn1(); 7obj.fn2(); 8 9const x = new obj.fn1(); 10const y = new obj.fn2();
1const obj = { 2 fn1: () => console.log(this), 3 fn2: function() {console.log(this)} 4} 5 6obj.fn1(); 7obj.fn2(); 8 9const x = new obj.fn1(); 10const y = new obj.fn2();
题库维护不易,您的支持就是我们最大的动力!