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

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

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. 浏览器接口 · LayaAir3.0文档 · LAYABOX [ 90%]

...理宽高(屏幕宽高)2.3 设备像素比三、调用原生对象3.1 document Dom3.2 window 窗口3.3 container 画布四、判断运行环境浏览器接口 一、概述 在项目开发中,往往我们需要跟外部运行环境打交道,比如在浏览器运行或者在一些小游戏平...

来源: Laya3.0_文档 发布时间: 20230810

3. 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

4. laya.utils.Browser_API3.0 [ 88%]

...ebAudio userAgent Accessors _isMiniGame clientHeight clientWidth container document height pixelRatio width window Methods createElement getElementById getQueryString now removeElement Properties Static PLATFORM_ANDROID PLATFORM_ANDROID: number = 1 Defined in laya/utils/Browser.ts:71 Static PLATFORM...

来源: Laya3.0_api 发布时间: 20231115

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

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

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

6. laya.utils.Browser [ 84%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BrowserProperties | Methods Packagelaya.utilsClasspublic class BrowserInheritanceBrowser Object Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Public Properties PropertyDefined By ...

来源: laya_api 发布时间: 20170929

7. laya.utils.Browser [ 84%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames BrowserProperties | Methods Packagelaya.utilsClasspublic class BrowserInheritanceBrowser Object Browser 是浏览器代理类。封装浏览器及原生 js 提供的一些功能。 Public Properties PropertyDefined By ...

来源: Laya2.0_api 发布时间: 20190513

8. 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

9. DOM元素-视频 [ 83%]

...素 var videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zInddex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "../../res/av/mov_bbb.mp4"; videoElement.controls = true; // ...

来源: Laya_示例 发布时间: 20240930

10. DOM元素-视频 [ 83%]

...素 let videoElement = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElement); // 设置Video元素地样式和属性 videoElement.style.zIndex = Laya.Render.canvas.style.zIndex + 1; videoElement.src = "res/av/mov_bbb.mp4"; videoElement.controls = true; // 阻止IO...

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