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

大约有 46 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)

1. 打包app,Laya.Browser.document.createElement("script"); 不能用吗? [ 100%]

打包app,Laya.Browser.document.createElement("script"); 不能用吗? var script:any = Laya.Browser.document.createElement("script"); Laya.Browser.document.body.appendChild(script); script.innerHTML = Laya.loader.getRes(this.resourceurl + "res/main.min.js"); h5是没问题的,打包app 并没...

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

2. Layabox web 复制一段文字到剪贴板 [ 89%]

...(str); }  function ShowDiv(str) {  var _this = this;  this.AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "AppConfirm"; }  this.modlueDiv = docume...

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

3. 屏幕截屏问题 [ 85%]

...onch.captureScreen(function(arrayBuff,width,height){ window.image = window.document.createElement("img"); window.image.putImageData(arrayBuff,width,height); }) } }     E/LayaBox: >>>>>>>>>>>>>>>>>>>>>>>>>>>>classNa...

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

4. TS setExternalLinkEx問題 [ 84%]

...conch && Browser.window.conch.showAssistantTouch(false); var ctx = document.createElement('canvas').getContext('2d'); function render(){ ctx.fillStyle='#99d9ea'; ctx.fillRect(0,0,window.innerWidth,window.innerHeight); window.requestAnimationFrame(render); } window.requestAnimationFrame(rende...

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

5. iframe跳转没反应 [ 83%]

... 1 个回复 cuixueying 赞同来自:     var iframe:* = Browser.window.document.createElement('iframe');             iframe.setAttribute('src','http://www.baidu.com');             var body:*=Browser.window.document.getElementsByTagName("body")[0];             body.appe...

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

6. 截屏函数异常E/LayaBox:className:layaair/game/browser/ExportJavaFunction,methodName:captureScreen [ 83%]

...dth,height,conch.getCachePath()+"/test.png" ); window.globalImage = window.document.createElement("img"); window.globalImage.onload=function() { ...使用image对象 } window.globalImage.src = "file:///" + conch.getCachePath()+"/test.png"; */ // window.image = window.document.createElement("img"); i...

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

7. ios上input无法隐藏 [ 82%]

ios上input无法隐藏            var z_file = Laya.Browser.document.createElement("input"); //创建input             var f_file = Laya.Browser.document.createElement("input"); //创建input             z_file.style="filter:alpha(opacity=0);opacity:0;width: 29%;height:11%;";   ...

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

8. Laya下的图片上传示例(完整版) [ 81%]

...位置一致,这里我们默认在0点位置 var file:any = Laya.Browser.document.createElement("input"); var img:any = Laya.Browser.document.createElement("img"); //设置file样式 file.style="filter:alpha(opacity=0);opacity:0;width:200px;height:100px;background:url(b1.png) no-repeat center;curs...

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

9. 关于嵌入div [ 81%]

...Browser._container.id="layaContainer";                 Browser.document.body.appendChild(Browser._container);             }             return Browser._container;             },function(value){             Browser._container=value;         }); 20...

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

10. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 81%]

...w();             }           private iframe: any = Laya.Browser.document.createElement("iframe");     private _view: HTMLDivElement = document.createElement("div");           public Show(): void {         Laya.Browser.document.body.appendChild(this._view);         this._vie...

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