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

大约有 141 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)

121. 我创建的canvas无法显示,具体描述见问题补充 [ 55%]

...不显示,也不报错,demo已发,望解决,谢谢。 Laya.Browser.document.body.appendChild(filteredimage); 附件 : --> test_beautify.rar 2020-12-26 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 sh...

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

122. 安卓无法调用后置摄像头 [ 55%]

...ction () { if (!LayaAir3D.video.videoWidth) { return; } laya.utils.Browser.document.body.appendChild(LayaAir3D.video); clearInterval(interval); }, 1000 / 50); }); }).catch(function (error) { onError({ message: error.message }); }); 2018-02-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

123. 请问如何监听html的button元件ontouchstart,ontouchend等事件 [ 55%]

...click的监听事件。this.btn_CloseWebiFrame = laya.utils.Browser.window.document.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); };  oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextmenu = () => { console.log("aaa4"); this.img_close...

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

124. this.bitmap.activeResource is not a function. [ 54%]

...FileSystemManager is not a function 用微信开发者调试的时候出现document.createTextNode is not a function at api readFile fail callback function ide导出ui时,UI代码显示不正常在小游戏中会报错:gameThirdScriptErrorn.sort is not a function api readFile success callback fu...

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

125. es6代码发布时如果勾选压缩混淆 JS, 则发布报错 [ 54%]

...' 3. 发布失败, 报如下错误: [ERR]|CompressJS Fail: /Users/somebody/Documents/code/lab/myLaya/bin/js/Hello.js {"message":"Unexpected token: keyword (const)","filename":"0","line":1,"col":0,"pos":0} 补充说明: 尝试将 jsconfig.json 中的compilerOptions.target的值改为ES6, 报错依旧...

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

126. 无法截屏1.714 [ 53%]

...便可以通过 file:///的方式直接进行访问了 var image = window.document.createElement("img"); image.onload=function() { } image.src="file:///" + conch.getCachePath()+"/test.jpg";  截图之后还需要 取出来用,我们这个截图是没问题的, 你那个报错是怎么弄的 201...

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

127. 怎么才能像HTML5中那样直接操作Canvas [ 52%]

...sform: matrix(1, 0, 0, 1, 0, 0);"></canvas> var canvas:any = document.getElementById("layaCanvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "red"; ctx.fillRect(120, 10, 150, 150); console.log("draw complete"); 换成你说的canvas还...

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

128. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 50%]

...Error: Vector3 is not a constructor 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function undefined Uncaught TypeError: Cannot read property 'load' of null 问题状态 最新活动: 2019-10-24 13:42 浏览: 1387 关注: 4 人

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

129. UI组件里面 怎么添加echarts统计图 [ 50%]

...: 1086 关注: 3 人 Life | Growing up • 2018-07-09 16:52 Laya.Browser.document.body.appendChild(div) 然后实例化为图标 是用这样的方式来的吗 我遇到的问题是要把图标放在一个弹层UI组件里面 Life | Growing up • 2018-07-09 16:53 错别字 图表 zsq • 2018-07-09...

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

130. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 50%]

...) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); 上面这个方...

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