大约有 404 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
Laya_社区(355) Laya2.0_文档(29) Laya3.0_文档(9) Laya_示例(4) Laya2.0_示例(4) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...页,编辑器和开发者工具上没问题 this.iframe = Laya.Browser.document.createElement("iframe"); this.iframe.style.position ="absolute";//设置布局定位。这个不能少。 this.iframe.style.zIndex = 1000;//设置层级 this.iframe.style.le...
来源: Laya_社区 发布时间: 20200514
...yle.top = "50px"; this.setup(); const parent = document.getElementById("preview"); const child = document.getElementById("layaContainer"); parent.appendChild(child); console.log(this.rect); } 2020-11-30 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20201130
...boat • 2017-09-25 22:14 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.getset,__newvec=Laya.__newvec; })(window,document,Laya);不知道是不是正确
来源: Laya_社区 发布时间: 20170925
...io的原因,使用H5Audio播放音乐后,切换后台再切换回前台,在document的visibilityChange的监听事件里Browser.document.visibilityState的值是hidden,应该是visible 这边做了临时处理 在core.js里把SoundManager._musicClass = AudioSound替换为SoundManager._musicClass = s...
来源: Laya_社区 发布时间: 20200808
...uot;www.layabox.com"; p.y = 200; 方法 2 var iframe = Browser.window.document.createElement('iframe'); iframe.setAttribute('src','www.layabox.com'); var body =Browser.window.document.getElementsByTagName("body")[0]; body.appendChild(iframe); 都没有反应 ?也没有崩溃? cuix...
来源: Laya_社区 发布时间: 20170522
...错 Wechat Lib:2.0.9, 2018.6.8 11:56:05 WAGame.js:4 gameThirdScriptError document.createTextNode is not a function TypeError: document.createTextNode is not a function at u (http://127.0.0.1:23181/game/code.js:10:31792) at s (http://127.0.0.1:23181/game/code.js:10:31291) at n (http://127.0.0.1:23181...
来源: Laya_社区 发布时间: 20180613
... function onLoaded(): void { //laya相关代码 var div:any = Laya.Browser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); var myChart = new Laya.Browser.window.echarts.init(div); var option = { title: { text: 'EChart...
来源: Laya_社区 发布时间: 20180707
...e: any) { e.preventDefault(); }; document.addEventListener('contextmenu', this.preventContextMenu); console.log('右键菜单已禁用'); } enableRightClick() { if (this.preventContextMenu) { document.rem...
来源: Laya_社区 发布时间: 20251115
... <input type="file" id="btn_file" style="display:none"> 使用document.getElementById("btn_file").click()不能弹出文件选择框 在console里面输入document.getElementById("btn_file").click()能弹出 2018-09-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20180914
... 赞同来自: 改变FPS信息的大小,需要修改iflash引擎库下的Document.as文件代码,找到 var ctx:Context=canvas.context; ctx.font="normal 100 12px Arial"; 这段代码语句,将12px根据你的需求改变值的大小,值越大,字体越大,反之越小。 步骤: 一、...
来源: Laya_社区 发布时间: 20151214