大约有 58 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
...ord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数conv...
来源: Laya2.0_文档 发布时间: 20210715
...ame/instant-game-client/android/lib-rt-core/src/main/jni/../../../../../js-bindings/jsb_runtime.cpp:179 07-11 16:53:45.923 30921-30972/? E/jswrapper: ERROR: Uncaught Error: LoaderManager:unknown file(res/scenes/LayaScene_game/game.ls) extension with: ls., location: /data/user/0/com.nearme.instant.pl...
来源: Laya_社区 发布时间: 20190711
...象注册一个方法: window["natvieCallJs"] = function(msg,data){ }.bind(this);然后,Java这边: public static void callToJs(int msg, JSONObject data) { StringBuilder cmd = new StringBuilder("window.natvieCallJs("); cmd.append(msg); cmd.append(','); cmd.append(data); cmd.append(')'); Log...
来源: Laya_社区 发布时间: 20190515
...s, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数convertT...
来源: Laya2.0_文档 发布时间: 20210715
...script.showMsgFunc = function ():void { text = "ShowMsg"; color = "red"; }.bind(_lab); })); ``` 最后了来看下效果,如图2。 (图2)
来源: Laya2.0_文档 发布时间: 20210715
...audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); return rst; } __onEnd() { if (this.loops == 1) { if (this.completeHandler) { Laya.Laya.system...
来源: Laya_社区 发布时间: 20200103
...d compile 后报下面的错误。 sp.stdout.on("data", this.emitStdout.bind(this)); ^ TypeError: Cannot read property 'on' of undefined at LayaProjectCompiler.compile (/usr/lib/node_modules/layaair-cmd/compile_project.js:70:14) at new LayaProjectCompiler (/usr/lib/n...
来源: Laya_社区 发布时间: 20180514
...动接口 this.refreshList.scrollBar.stopMoveLimit = this.scrollBarIsStopBind.bind(this); this.refreshLimit("dragTopLimit", 65); this.refreshLimit("dragBottomLimit", 65, 20); //绑定单元格鼠标处理 this.refreshList.mouseHandler = new Handler(this, this.onListMouse); // 提示文字 var image ...
来源: Laya2.0_示例 发布时间: 20251209
...+ self.heartbeatTimeout; self.heartbeatTimeoutId = self.heartbeatTimeoutCb.bind(self,data); Laya.timer.once( self.heartbeatTimeout,self,self.heartbeatTimeoutCb.bind(self,data)); }) } private heartbeatTimeoutCb(data) { var gap = this.nextHeartbeatTimeout - Date.now(); if(gap > this.gapThreshold) {...
来源: Laya_社区 发布时间: 20180119
...LoadAbility:292)]name:EntryAbility. 01-06 17:34:41.525 797 23045 I C057d4/DBinderBaseInvoker: DBinderDatabusInvoker 36: create -- 01-06 17:34:41.530 1574 1809 E C01406/WRAP: 01-06 17:34:41.530 1574 1809 E C01406/WRAP: [gles_fb_surfaces_changed_nx@mali_gles_fb_module_api_nx.cpp:227] sprddebug gles_fb...
来源: Laya_社区 发布时间: 20250106