大约有 1,765 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0053 秒)
... this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关闭事件 console.log("关闭"); } function errorHandler(e){ //连接出错 console...
来源: Laya_社区 发布时间: 20180125
...libs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) { console 窗口报错如下: ------------------------------------------ WAGame.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property ...
来源: Laya_社区 发布时间: 20190319
... files.length; i++) { let fileUrl = files; console.log("加载文件测试", i, fileUrl); MiniFileMgr.readFile(fileUrl, "utf8", Laya.Handler.create(this, function() { console.log("加载文件测试1", i, fileUrl); ...
来源: Laya_社区 发布时间: 20200111
...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...
来源: Laya_社区 发布时间: 20180827
...setLoaded), null, null, 2, false); })(); function onAssetLoaded(texture) { console.log(texture.source); // 恢复默认并发加载个数。 if (++numLoaded == 3) { Laya.loader.maxLoader = 5; console.log("All done."); } } })();module laya { import Texture = Laya.Texture; import Handler = Laya.Handle...
来源: Laya_示例 发布时间: 20251209
...is.skeleton.on(Event.STOPPED, this, this.play); this.play(); } onError() { console.log("parse error"); } play() { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(this.index, false, true); } } new SpineBinary;import Browser = Laya.Brow...
来源: Laya2.0_示例 发布时间: 20251209
LayaNative 日志打印 console.log在App Android 无法打印日志,什么接口才可以在Android App下打印日志 2018-08-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你需要...
来源: Laya_社区 发布时间: 20180821
...; @regClass() export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了一个简单的示例DEMO,完整代码如下: // src/ProtobufDemo.ts // 引入生成...
来源: Laya3.0_文档 发布时间: 20251010
... qg.loadSubpackage({ subpackage:'subpackageName1', success : function () { console.log("loadSubpackage success" ); }, fail:function(){ console.log("loadSubpackage fail"); }, complete:function() { console.log("loadSubpackage complete"); } }); task.onprogress( callback(res) { console.log("onProgress" ...
来源: Laya2.0_文档 发布时间: 20210714
...d/dh/gril1.wav", 1,Laya.Handler.create(this,() => { })); console.log(soundChItem.position+""); console.log(soundChItem.duration+""); 附件 : --> 2023-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20230519