大约有 35 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0034 秒)
Laya_社区(19) Laya2.0_文档(6) Laya2.0_示例(3) Laya_示例(2) Laya3.0_文档(2) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...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
...素 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_示例 发布时间: 20251130
...素 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_示例 发布时间: 20251130
...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
... id="aaaa",现在想把layabox做的东西嵌入到这个div中。 Browser.document.getElementById("aaaa").appendChild(Browser.canvas.source); 这样写发现引擎自身会创建一个layacontainer的div,canvas会被放到这个div中,请问怎么在不修改引擎的代码下可以把canvas添...
来源: Laya_社区 发布时间: 20170421
...Browser._container.id="layaContainer"; Browser.document.body.appendChild(Browser._container); } return Browser._container; },function(value){ Browser._container=value; }); 20...
来源: Laya_社区 发布时间: 20170419
...的,因为图表框架是根据父容器改变大小的 __JS__("var div=document.createElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // ...
来源: Laya_社区 发布时间: 20170109
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
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
... Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Browser.getElementById("layaCanvas") // canvas.appendChild(videoElement) videoElement = Browser.createElement("video"); div.appendChild(videoElement); // Browser.document.body...
来源: Laya_社区 发布时间: 20180313