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

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

1. 使用bind移除事件报错 [ 100%]

使用bind移除事件报错 在侦听事件中添加了bind,如下: this.parent["timer1"].addEventListener(TimerEvent.TIMER,bind(this,this.timer))? 2015-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 c...

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

2. bind函数的作用 [ 97%]

bind函数的作用 2018-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 qian 赞同来自: http://blog.csdn.net/xc_tsao/article/details/44132965 2018-01-30 0 7 分享 微博 QZONE 微信 a15715740412 赞同...

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

3. Laya 绑定显示内容到骨骼动画 [ 95%]

...内容:   1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf...

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

4. timer无法用clear清除的BUG [ 87%]

...c function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya.timer.clear(this,this.onLoop.bind(this));  //     } }   2017-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

5. AS项目怎么使用类成员变量 [ 86%]

...用域变成了window,所以你需要绑定下作用域。onAssetsLoaded.bind(this) 2017-09-27 1 4 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你AS中是怎么写的? 2017-09-27 0 1 分享 微博 QZONE 微信 ljy328803417 赞同来自: 如图 2017-09-27 0 7 分享 微博 QZON...

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

6. 发布原生 ios/android 的渲染问 题 [ 84%]

...this._callbackFuncObj.addCallbackFunc(1,(this.canvasBeginRenderFromNative).bind(this));         this._callbackFuncObj.addCallbackFunc(2,(this.canvasEndRenderFromNative).bind(this));         this._datai32[ /*laya.display.SpriteConst.POSCANVAS_CALLBACK_FUN_ID*/56]=1;         th...

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

7. 类未找到方法 [ 79%]

...你添加回调方法得地方,改下也可以。,方法后面增加.bind(this) 2017-01-18 0 0 分享 微博 QZONE 微信 xuhu1518 赞同来自: RequestConfig.instance.getRequestConfig(String(0), requestCallback.bind(this)); 可以了 2017-01-19 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

8. 【官网代码】加载dom音频报错,怎么回事? [ 73%]

...pleteHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudioData.bind(this));}private function decodeAudioData(buffer:Object):void{audioBufferSourceNode = audioContext.createBufferSource();audioBufferSourceNode.connect(analyser);analyser.connect(audioContext.destination);audioBufferSourceN...

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

9. 输入设备-地图 [ 72%]

...rrorHandler); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); })(); function createDom() { mapDiv = Browser.createElement("div"); var style = mapDiv.style; style.position = "absolute"; style.top = Laya.stage.height / Browser.pixelRatio + "px"; style.left = "0px"; style.width...

来源: Laya_示例 发布时间: 20240930

10. 输入设备-地图 [ 71%]

...r); // 绑定作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } createDom() { const Browser = Laya.Browser; mapDiv = Browser.createElement("div"); let style = mapDiv.style; style.position = "absolute"; style.top = Laya.stage.height / Browser.pixelRatio + "px"; style.left = "...

来源: Laya2.0_示例 发布时间: 20240930