大约有 404 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)
Laya_社区(355) Laya2.0_文档(29) Laya3.0_文档(9) Laya_示例(4) Laya2.0_示例(4) laya_api(1) Laya3.0_api(1) Laya2.0_api(1)
...入 HallView.prototype.OnClickOneGou=function(){ this.frame=Laya.Browser.document.createElement("iframe"); this.frame.width=this.con.width; this.frame.height=850; this.frame.style.margin="0"; this.frame.style.padding="0"; this.frame.style.left="0"; this.frame.style.top="50px"; this.frame.id="OneGou"...
来源: Laya_社区 发布时间: 20190316
...js 文件最上面加入两行代码 var window = window || global; var document = document || (window.document = {}); 2018-07-16 1 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 tt8998781 相关问题 【带...
来源: Laya_社区 发布时间: 20180716
...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...
来源: Laya2.0_文档 发布时间: 20210715
...); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F12,把上面的代码粘贴到控制台,然后回车,就能看到上面截图的效果。...
来源: Laya2.0_文档 发布时间: 20210714
... Laya.Sprite(); icon.loadImage('img/test.png'); Laya.stage.addChild(icon); document.body.addEventListener("click",function(){ var kk = icon.drawToCanvas(431, 428).getContext('2d').canvas; var img = new Image(); img.src = kk.toDataURL(); document.body.appendChild(img); }); 我就用Sprite加载...
来源: Laya_社区 发布时间: 20161107
... QZONE 微信 chang2009 赞同来自: var window = window || global; var document = document || (window.document = {}); 是编译出的那个JS文件的前头少了这两句代码造成的。 2018-04-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20180107
... Laya_Aaron 赞同来自: qq771472501 var window = window || global; var document = document || (window.document = {}); 加在代码最前面试试 2018-04-11 1 1 分享 微博 QZONE 微信 qq771472501 赞同来自: 2018-04-12 0 2 分享 微博 QZONE 微信 Apple 赞同来自: 建议完整描述...
来源: Laya_社区 发布时间: 20180408
__JS__(as变量)为什么不能用? __JS__("document.title = '标题'");//这样是可以的。var str:String = "document.title = '标题'" _JS_(str); //这样是不行的为什么,如果想执行js方法,用as的变量如何实现? 2016-07-23 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20160723
...('}') return xml; 代码如上,现在xml返回的是document,想求助下怎么能获得xmldom啊,我现在xmldom的方法都没法用。js相关方法也查了,但是都是类似的处理方法。 2017-02-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170221
...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