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

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

1. Dialog [ 100%]

...close,主动销毁会剩下一个蒙层没有移除?是为什么? function Controller() {     Controller.super(this);      this.btn.on(Event.CLICK,this,function(){           this.destroy();     })  } Laya.class(Controller, "Controller", stUI); 2018-08-31 添加评论 免费帖...

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

2. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 95%]

...用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 想实现的功能是获得当前ip所在省份 经度娘查得: 新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js 尝试了两种方式: 1.  &l...

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

3. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 92%]

...his.currentRequest.url, this.currentRequest.data, "post", "text", ["Access-Control-Allow-Origin","*", "Access-Control-Allow-Headers","X-Requested-With", "Access-Control-Allow-Methods","GET,POST"]); 2020-06-29 0 0 分享 微博 QZONE 微信 金风 赞同来自: 解决了 网址带参数的情况 post...

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

4. Pool 使用 Laya.Prefab [ 90%]

...efab; let box: Laya.Sprite = Laya.Pool.getItemByCreateFun("ItemBox", this._control.targetBox.create, this._control.targetBox); 运行报错: Cannot read property 'create' of undefined targetBox又在 control里面引用一个Prefab 2019-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

5. 播放视频只有声音没有图像 [ 81%]

...Element.style.zInddex =Laya.Render.canvas.style.zIndex + 100; videoElement.controls = false; videoElement.autoplay =true; videoElement.style.width='100%'; videoElement.style.height='100%'; videoElement.autobuffer=true; videoElement.src = "/Users/apple/LayBox/星空/laya/assets/video/world.mp4"; // ...

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

6. socket通讯返回数据 [ 79%]

...TP/1.1 Host: 192.168.1.133:8899 Connection: Upgrade Pragma: no-cache Cache-Control: no-cache Upgrade: websocket Origin: file:// Sec-WebSocket-Version: 13 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) LayaAirIDE/1.12.2 Chrome/56.0.2924.87 Electron/1.6.6 Safar...

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

7. 关于video [ 75%]

...e.zIndex + 1; videoElement.src = "../laya/assets/friend.mp4"; videoElement.controls = true; videoElement.play(); // 阻止IOS视频全屏 videoElement.setAttribute("webkit-playsinline", true); videoElement.setAttribute("playsinline", true); // // 设置画布上的对齐参照物 var reference = new...

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

8. 如何监听键盘组合键 [ 73%]

... 赞同来自: laya.events.KeyBoardManager.hasKeyDown(laya.events.Keyboard.CONTROL) 2019-07-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sogetsu 相关问题 TextInput重写onFocus和onBlur事件监听不到 请问下键盘事件的...

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

9. 3d骨骼动画播放不响应Laya.Event.COMPLETE [ 70%]

...攻击动作停止后,不会响应Laya.Event.COMPLETE事件。如果在controller里面没有编辑后续动作的,则可以响应Laya.Event.COMPLETE事件。我现在想攻击动作结束后响应Laya.Event.COMPLETE事件,需要怎么做 2018-02-02 添加评论 免费帖 --> 分享 微博 QZONE...

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

10. socket无法连接服务器 [ 69%]

.../ HTTP/1.1 Host: 127.0.0.1:8080 Connection: Upgrade Pragma: no-cache Cache-Control: no-cache Upgrade: websocket Origin: http://localhost:3138 Sec-WebSocket-Version: 13 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Accep...

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