大约有 196 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
Uncaught TypeError: Game.super is not a function var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20171012
...1-10 0 1 分享 微博 QZONE 微信 oy2419498011 赞同来自: var shouye=(function(){ (function shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(thi...
来源: Laya_社区 发布时间: 20180110
有关继承类的问题 //建筑类 var Building = (function (_super){ function Building(params) { Building.super(this); } Laya.class(Building,"Building",_super); return Building; })(Laya.Sprite) //床 var Bed = (function (_super){ function Bed(params) { Bed.super(this); } Laya.class(Bed,"Bed",...
来源: Laya_社区 发布时间: 20171106
跟着老师打地鼠游戏写的代码,JS为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; thi...
来源: Laya_社区 发布时间: 20180504
...der加载后, 再加载B.js,这样才合理。 具体代码: private function onAssetLoaded():void { //trace("加载结束"); //实例化类 Example,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(d...
来源: Laya_社区 发布时间: 20170725
....static; var View=laya.ui.View; var Dialog=laya.ui.Dialog; var ABCPanelUI=(function(_super){ function ABCPanelUI(){ ABCPanelUI.__super.call(this); } CLASS$(ABCPanelUI,'ui.abc.ABCPanelUI',_super); var _...
来源: Laya_社区 发布时间: 20161017
请问UI之间的场景切换要怎么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundMan...
来源: Laya_社区 发布时间: 20170725
...的理解 你的项目修改如下即可正常运行 Game.js var Game = (function(){ function Game(){ // 初始化引擎,设置了游戏的宽高 Laya.init(480,852); Laya.stage.bgColor="#EEFFCC"; var bg = new BackGround(); Laya.stage.addChild(bg); } return Game; }()); var gameInstance = new Game()...
来源: Laya_社区 发布时间: 20170222
关于类中方法的调用 var FactionListItem = (function(_super){ function FactionListItem(data) { FactionListItem.super(this); this.updateLvAndPeopleCount(); this.updateLvAndPeopleCount = function(){ //----- } ...
来源: Laya_社区 发布时间: 20171127
... 微博 QZONE 微信 gls_laybox 赞同来自: /* * 父类t1 */ var t1 = (function () { function t1(b) { this.b = b; } //父类方法a t1.prototype.a = function(){ console.log(this.b.x+""+this.b.y); } return t1; }()); ========================= /* * t2继承父类t1 */ var t2 = (function () { funct...
来源: Laya_社区 发布时间: 20180104