shaotianhk var MPanel1 = (function (_super) { function MPanel1() { MPanel1.super(this); } Laya.class(MPanel1, "MPanel1", _super) var _proto = MPanel1.prototype; return MPanel1; }(ui.Panel1UI));代码如上,报错如下
shaotianhk 检查了所有的代码,找了一晚上,终于搞明白了。 粗心,有一个变量名字格式错误,应该是下划线写成减号了,如下图,希望其它同学不要犯同样的错误。 看来很多时候找BUG,不能看提示。一味相信提示,只会误导大家。