大约有 570 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0946 秒)
Laya_社区(206) Laya3.0_api(153) laya_api(87) Laya2.0_api(79) Laya2.0_文档(23) Laya3.0_文档(18) Laya2.0_示例(2) Laya_示例(2)
...是这样的,js原生的addEventListener也是重复执行同一个功能函数,不会自动屏蔽重复项 zuojianfei • 2017-04-11 11:40 pc测试啊,一个按钮注册两次必现啊 this.sureBtn.on("click",this,this.onSurebtn); this.sureBtn.on("click",this,this.enter...
来源: Laya_社区 发布时间: 20170411
事件响应函数的参数在API中哪里可以查到 bg.on("mousemove", this, onMouseMove); function onMouseMove(e) { console.log(e) } 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识...
来源: Laya_社区 发布时间: 20171016
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
...确建立连接; } function receiveHandler(msg){ ///接收到数据触发函数 } function closeHandler(e){ //关闭事件 } function errorHandler(e){ //连接出错 } ``` 注意:我们看到实例化Byte和Socket的时候都设置了endian,这个是很容易忽略的地方,有些开发者...
来源: Laya2.0_文档 发布时间: 20210714
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231102
Laya.loader.create 进度回调函数执行两次!!! Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出...
来源: Laya_社区 发布时间: 20180620
...于是我改成a.offAll(); 就可以了。 需要说明的是onStartDrag是函数内定义的lamda表达式,而且那两句代码不是在同一帧执行的。 首先这算不算个bug? 然后我觉得不管怎么说,既然offAll有效,那么就说明内部肯定是记录了一个事件的...
来源: Laya_社区 发布时间: 20180828
...te function receiveHandler(msg:Object = null):void{///接收到数据触发函数}private function closeHandler(e:Object= null):void{//关闭事件}private function errorHandler(e:Object = null):void{//连接出错} 发送 同byte 例如你的传输 json 转byte 类型 this.socket.send(this.byte.buf...
来源: Laya_社区 发布时间: 20180514
spine 回调函数的参数没有效果 spine中定义的回调方法中设置int值,回调中 data的intValue 没有改变都是0,spine 输出文件见附件 sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { } var str = "readyGO1"; sk_view.sk_timelimit....
来源: Laya_社区 发布时间: 20180531