“`”

参考回答:

<pre><code>var a=11;
function test2(){
this.a=22;
let b=()=>{console.log(this.a)}
b();
}
var x=new test2();
</code></pre>

//输出22

定义时绑定。

<pre><code> "“`

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.