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

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

1. 浏览器接口 · LayaAir3.0文档 · LAYABOX [ 100%]

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

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

2. laya.utils.Browser [ 97%]

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

3. laya.utils.Browser [ 97%]

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

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

...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. TS setExternalLinkEx問題 [ 92%]

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

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

打包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

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

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

8. 屏幕截屏问题 [ 87%]

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

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

9. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 87%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...

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

10. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 87%]

...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...

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