let testLayer = new TestLayer1();this.addChild(testLayer);let TestLayer1 = cc.Layer.extend({ ctor:function(){ this._super(); }, onEnter: function () { this._super(); },});