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

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

351. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 50%]

...什么问题,谢谢! private initCode() { var div: any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrco...

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

352. iframe页面嵌套下失焦(焦点在父窗口被聚焦),playMusic背景音乐播放无声音 [ 50%]

...format,for optimal performance reason,please refer to the official website document."); return null; } } if (_soundMuted) return null; } var tSound:Sound; if (!Browser.onMiniGame) { tSound= Laya.loader.getRes(url); } if (!soundClass) soundClass = _soundClass; if (!tSound) { tSound = new soundClass()...

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

353. XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. [ 50%]

...hildNode'. XmlDom没有了吗?要用哪个类? 我只找到原生的XMLDocument,可是报错 Property 'attributes' does not exist on type 'Node & ChildNode'. 谁 遇到过?let local_config:XMLDocument = Laya.Utils.parseXMLFromString(source); local_config.firstChild.childNodes[0].attribut...

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

354. 【字节小游戏】游戏中播放视频 [ 49%]

... var videoElement:any = 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_社区 发布时间: 20200909

355. 圆形的头像怎么实现? [ 49%]

...quot;> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> html,body{overflow: hidden;} *{margin: 0; padding: 0;} #layaContainer{overflow: hidden;} </style> </head> <body> <script src='js/libs/laya.co...

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

356. as中BoxCollider引入了,但是运行的时候还是提示null [ 49%]

...? 根据官方教程:FlashBuilder-LayaCompiler-运行提示"must set Document Class!" 问题状态 最新活动: 2017-12-20 12:15 浏览: 1241 关注: 2 人 bing8310124 • 2017-12-20 12:16 @Laya_Aaron:已解决,谢谢大佬帮助!!! bing8310124 • 2017-12-20 11:33 @Laya_Aaron:好像不...

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

357. layaair2-cmd编译报错task无compile [ 49%]

...14:55] Task 'compile' is not in your gulpfile [11:14:55] Please check the documentation for proper gulpfile formattin gulp版本 3.9.1    2020-01-18 0 0 分享 微博 QZONE 微信 ngKevin 赞同来自: 找依赖找了半天 ,废了半天的力气,找全之后,还有个编译的task 有问...

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

358. this.bitmap.activeResource is not a function [ 49%]

...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_社区 发布时间: 20200618

359. html效果用layaAirIde 实现 [ 49%]

...ang="en" <head>     <metacharset="UTF-8">     <title>Document</title>     <style>         div{             margin: 0 auto;             width: 100px;             height: 100px;         }         #main {             width: 400px; ...

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

360. LayaRender问题 Matter在LayaRender下出现不正常问题 [ 49%]

... //var runner = Runner.create(); var render = LayaRender.create({ element: document.body, engine: engine, options: { background: "#0E1115", wireframes: false, showDebug: true } }); //Runner.run(engine); LayaRender.run(render); World.add(engine.world, [ Bodies.rectangle(200, 150, 500, 20, {...

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