大约有 33 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0045 秒)
...ull,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDataContext("json/reward.json"); })); } ``` #### 子域部分节选: 该部分代码源自...
来源: Laya2.0_文档 发布时间: 20210715
...ate(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 MiniAdpter.sendJsonDataToDataContext("json/reward.json"); })); } ``` #### 子域部分节选: 该部分代码源自于2.0....
来源: Laya2.0_文档 发布时间: 20210715
...ull,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDataContext("json/reward.json"); })); } ``` #### 子域部分节选: 该部分代码源自...
来源: Laya2.0_文档 发布时间: 20210715
...e(null,function(){//加载完成//使用接口将图集透传到子域Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域Laya.MiniAdpter.sendJsonDataToDataContext("json/reward.json");}));} 2019-04-19 0 1 分享 微博 QZONE 微信 Laya_Aaron ...
来源: Laya_社区 发布时间: 20190419
...it():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); //激活资源版本控制 Laya.ResourceVersion.enable("version.json", Handler.create(thi...
来源: Laya_社区 发布时间: 20180529
...来自: 出现这种原因就要看一下,是否在初始化之前加了MiniAdpter.init(); 2018-01-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Laya_Aaron 相关问题 导微信小程序报错window.focus is not a function Lay...
来源: Laya_社区 发布时间: 20180105
... window.wxMiniGame(Laya, Laya); if (!Laya["MiniAdpter"]) { console.error("请先添加小游戏适配库,详细教程:https://ldc2.layabox.com/doc/?nav=zh-ts-5-0-0"); } ...
来源: Laya_社区 发布时间: 20200111
...ple { public function LayaUISample() { //微信小游戏适配库初始化 MiniAdpter.init(true,false); //初始化引擎 Laya.init(640, 480,WebGL); Laya.stage.scaleMode = Stage.SCALE_FIXED_HEIGHT; Laya.stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{...
来源: Laya_社区 发布时间: 20180525
... function TypeError: window.focus is not a function 很自然要加入Laya.MiniAdpter.init(); 但有一个重点是要写在最前面,包括import之前 已解决 2018-05-11 1 1 分享 微博 QZONE 微信 一点一滴 赞同来自: layabox 你这个错误应该引入微信的adpter.js或没引入...
来源: Laya_社区 发布时间: 20180511
...:TypeScript使用 TS 开发,添加微信适配库之后,只有 Laya.MiniAdpter.init() 能使用,而文档上关于微信缓存管理的 downLoadFile 等不能使用。 在 LayaAir.d.ts 中的 MiniAdpter 添加 static downLoadFile(fileUrl:string, fileType:string, callBack:Handler, encoding:st...
来源: Laya_社区 发布时间: 20180605