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

大约有 404 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

151. OPPO小游戏分包指南(TypeScript-小游戏适配文档-OPPO小游戏) [ 68%]

...。 [[https://cdofs.oppomobile.com/cdo-activity/static/201810/26/quickgame/documentation/#/subpackage/subpackage](https://cdofs.oppomobile.com/cdo-activity/static/201810/26/quickgame/documentation/#/subpackage/subpackage)] ### 三、oppo小游戏官方的分包方式 虽然很多开发者已经看...

来源: Laya2.0_文档 发布时间: 20210715

152. DOM元素-表单输入 [ 68%]

...= Laya.Render.canvas.zIndex + 1; input.style.width = "100px"; Laya.Browser.document.body.appendChild(input); return input; } fitDOMElements(){ for (let i = 0; i < arguments.length; i++) { let dom = arguments[i]; Laya.Utils.fitDOMElementInArea(dom, this.form, 100, i * (this.rowSpacing + this.rowHeigh...

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

153. 怎么获取手机相册内容 [ 67%]

...置一致,这里我们默认在0点位置; var file:Object = Browser.document.createElement("input"); //设置file的样式 file.style="filter:alpha(opacity=0);opacity:0;width: 150px;height:60px;"; file.type ="file";//设置类型是file类型。 file.accept="image/png";//设置文件的格式...

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

154. 打包后启动游戏后报错 [ 67%]

...ipt:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src = url; script.type = "get"; Browser.window[callbackName] = callback; //loading Main.tl.startLoad(); } private function callback(data:*):void { //移除 var script:* = Browser.getE...

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

155. JSONP跨域读取数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 67%]

...,100); var script:any = Laya.Browser.createElement("script"); Laya.Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static onComplete():void{ console.log("JSONP执行到这里"); } } new LayaSample(); ``` ```java var script:any = Laya.Browser.createEleme...

来源: Laya2.0_文档 发布时间: 20210715

156. JSONP跨域读取数据(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 67%]

...(100,100); var script = Laya.Browser.createElement("script"); Laya.Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } LayaSample.onComplete = function(){ console.log("JSONP执行到这里"); } return LayaSample; })(); new LayaSample(); ``` ```java var script = La...

来源: Laya2.0_文档 发布时间: 20210715

157. viewport:调用init之后,引擎会强制把html的viewport覆盖掉 [ 67%]

...t'){meta.content=content;flag=true;break;}i++;}; /*__JS__ */if(!flag){meta=document.createElement('meta');meta.name='viewport',meta.content=content;document.getElementsByTagName('head')[0].appendChild(meta);}; 我直接注释掉laya.core.js里的这3行 貌似可以了

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

158. JSONP跨域读取数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 67%]

...aya.init(100,100); var script:* = Browser.createElement("script"); Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static function onComplete():void{ trace("JSONP执行到这里"); } } } ``` ```java var script:* = Browser.createElement("script");//这...

来源: Laya2.0_文档 发布时间: 20210714

159. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 67%]

...wugs • 2018-06-11 11:53 private loadJs(jsPAth, fun) { var new_element1 = document.createElement(&quot;script&quot;);//创建新的script节点 new_element1.setAttribute(&quot;type&quot;, &quot;text/javascript&quot;); // new_element1.setAttribute(&quot;src&quot;, jsPAth); //LayaNative不支持 new_...

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

160. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 66%]

...回复 Laya_Aaron 赞同来自: 题主已经自行解决了,直接设置 document.body.style.overflow="hidden";超出截断,没有滚动条了 2019-05-16 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个浏览器层面的滚动条,与引擎是无关的。 2019-05-14 0 4 分享 微...

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