代码运行到Laya.Handler.create时候提示onTxtLoad is undfine.请教应该怎么定义?
export default class LocalTxt{
constructor() {
LocalTxt.Instance = this;
}
onTxtLoad(aText){
console.info("dfasd");
}
initTxt(){
Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT);
}
}