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

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

11. HttpRequest感觉没有发成功 [ 88%]

...xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("processHandler"); } function errorHandler(data){ console.log("errorHandler"); } function completeHandler(e){ console.log("completeHandler"); } 2018-08-27 添加评论 免费帖 --> 分...

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

12. laya.resource.PrefabImpl_API3.0 [ 87%]

...rarchy Prefab PrefabImpl Index Constructors constructor Properties _id api data destroyedImmediately lock name url uuid version DEBUG Accessors cpuMemory deps destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setC...

来源: Laya3.0_api 发布时间: 20231115

13. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 87%]

...lp = fork(gulpPath, cmd, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); });   b)、创建并编写脚本 tools-publ...

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

14. LayaAir下Data的使用! [ 86%]

LayaAir下Data的使用! 2017-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 再LayaAir中,不支持Data类属性的获取,请使用对应方法,如下 var d:Date=new Date(_...

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

15. websocket连接出错 [ 86%]

...tion (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/...

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

16. laya.device.motion.Gyroscope_API3.0 [ 86%]

...//developer.mozilla.org/en-US/docs/Web/Guide/Events/Orientation_and_motion_data_explained。 info: RotationInfo类型参数,保存设备的旋转值。 浏览器兼容性参见:http://caniuse.com/#search=deviceorientation Hierarchy EventDispatcher Gyroscope Index Constructors constructor Accesso...

来源: Laya3.0_api 发布时间: 20231115

17. 还是自定义事件问题。 [ 86%]

...自定义事件问题。 A实例 a.on("vj_move", this, this.onChange,this._data);  监听    在A类  抛事件 this.event("vj_move","abc");   断点监听处  this._data没数据   是不是写法有问题???   2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

18. js socket 连接不上 [ 84%]

...tion (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/...

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

19. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 84%]

[0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. 我使用spine3.8.75导出的文件无法使用。代码是使用的2.12.2beta1引擎示例的源码。   var Browser = Laya.Browser; var WebGL = Laya.WebGL; var Stage = Laya.Stage; var Event = La...

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

20. 怎么使用http请求 [ 82%]

怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...

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