gls_laybox 不好意思放错了,是这个
/*
* 父类t1
*/
var t1 = (function () {
function t1() {
}
//父类方法a
t1.prototype.a = function(){
console.log(111);
}
return t1;
}());
============================
/*
* t2继承父类t1
*/
var t2 = (function (_super) {
function t2() {
t2.super(this);
}
Laya.class(t2,'t2',_super);
t2.prototype.a = function(){
console.log('2222');
}
return t2;
}(t1));