JSFiddle - React, Tailwind, and code Playground
by fillano
JavaScript
class AAA {
constructor() {
class BBB {
ccc() {
alert(this);
alert(tmp.eee);
}
toString() {
return 'bbb'
}
}
var tmp = this;
this.bbb = new BBB();
}
get eee() {
return '字串eee'
}
}
var aaa = new AAA();
aaa.bbb.ccc();