• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 194 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

1. 分包后, 资源加载问题 [ 100%]

... console.log("kk1") var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; console.log("kk2") var FrameAnimation=laya.display.FrameAnimation,Sprite=laya.display.Sprite,Text=laya.display.Text; console.log("kk22") var View=laya.ui.View; con...

来源: Laya_社区 发布时间: 20170725

2. 这个写法是什么意思,能否解释一下,谢谢 [ 99%]

...      this.init();     }     //注册类 BackGround     Laya.class(BackGround, "BackGround", laya.display.Sprite);   问题: 1.Laya.class(BackGround, "BackGround", laya.display.Sprite); 这种写法是什么意思,  Laya.class(BackGround, "BackGround", laya.display.Sprite)  是...

来源: Laya_社区 发布时间: 20170311

3. 1.5.0 LayaAir IDE发布UI资源缺失! [ 98%]

...: 与内容相关的链接 提交 3 个回复 佟掌柜 赞同来自: var CLASS$=Laya.class; var STATICATTR$=Laya.static; var View=laya.ui.View; var Dialog=laya.ui.Dialog; var ABCPanelUI=(function(_super){         function ABCPanelUI(){                          ABCPanelUI.__s...

来源: Laya_社区 发布时间: 20161017

4. 有关继承类的问题 [ 97%]

...unction (_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",Building); return Bed; })()     var HomeView = (funct...

来源: Laya_社区 发布时间: 20171106

5. ts编译为js后 [ 97%]

...n(_super) { function AudioCommand() { AudioCommand.__super.call(this); } __class(AudioCommand, 'model.resource.audio.controller.AudioCommand', _super); 1.AudioCommand.__super.call(this); 2.__class(AudioCommand, 'model.resource.audio.controller.AudioCommand', _super); 1,2这两个句代码是什么...

来源: Laya_社区 发布时间: 20180313

6. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 96%]

Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent PhysicsCollider这个组件我只添加了一次,当我按住键盘在点击鼠标的时候,就会有这个错误。说我组件重复添加。我不知道,是你们有默认的键盘事件影响的,还是什么问...

来源: Laya_社区 发布时间: 20200505

7. 引用的类库问题 [ 96%]

...; this._setIndexHandler=Handler.create(this,this.setIndex,null,false); } __class(ViewStack,'laya.ui.ViewStack',_super); 1. ViewStack.__super.call(this); 2. __class(ViewStack,'laya.ui.ViewStack',_super); 这两句代码是什么意思 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

来源: Laya_社区 发布时间: 20180313

8. 跟着老师打地鼠游戏写的代码,JS为什么会出错 [ 95%]

...on 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; this.audio=null; GameUI.__super.call(this); } CLASS$(GameUI,'ui.GameUI',_super); var __proto__=GameUI...

来源: Laya_社区 发布时间: 20180504

9. 关于js继承类class的参数问题 [ 94%]

关于js继承类class的参数问题 Laya.class(LoginView, "LoginView", LoginUI) ; // 设置继承关系. 括号里第一个参数是一个方法,第三个是要继承的对象,第二个参数字符串是什么意思啊。 自己写了一个继承,Laya.class(LayaIndex,"LayaIndex",indexUI);...

来源: Laya_社区 发布时间: 20180426

10. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 93%]

...te; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undefined 2018-01-10 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 该问...

来源: Laya_社区 发布时间: 20180110