mushu:number;
start () {
this.mushu=0;
this.zifuchuanfenge();
}
zifuchuanfenge(){
cc.loader.loadRes("wenben", function (err, conf) {
if (err) {
cc.error(err.message);
return;
}
this.wenben=conf.toString();
let qiege:string[]=[];
//this.mushu 会显示undefined
let qie:string= this.wenbenArr[this.mushu];//如果吧this.mushu换成0 就不会显示undefined
qiege=qie.split(",");
cc.log(qiege.length);
cc.log(this.mushu);
});
