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

大约有 2,323 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0060 秒)

41. 微信小游戏 code.js 报错 Cannot read property 'apply' of undefined [ 94%]

...ypeError: Cannot read property 'apply' of undefined     at Function.eof (http://127.0.0.1:25423/game/code.js:53674:69)     at Type.setup (http://127.0.0.1:25423/game/code.js:59330:33)     at Type.encode_setup [as encode] (http://127.0.0.1:25423/game/code.js:59362:17)     at AwesomeData.Send ...

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

42. 把 hr.http.timeout 设置后,如果超时没消息返回 [ 94%]

把 hr.http.timeout 设置后,如果超时没消息返回 如果我设置为 hr.http.timeout = 3000 (秒),后端设置为10秒后返回,3秒超时后..没消息返回,不是应该有个超时消息返回的? 这个应该怎么处理? 谢谢了.   2017-10-16 添加评论 免费帖 --> 分享 微博...

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

43. 最新版本IDE,如何获取http返回的json数据 [ 94%]

最新版本IDE,如何获取http返回的json数据 参照官网例子写的http post请求,需要获取返回的json数据,但是一直获取不到,请教一下什么问题 //注册按钮响应函数 Login.prototype.onButtonLogin = function (){ console.log ('按了登录按钮')  var xhr = ...

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

44. http获取文件资源报错 [ 94%]

http获取文件资源报错 Failed to load http://10.5.2.227:8000/GameLog2018-1-9-17-62.log: Request header field Content-Type is not allowed by Access-Control-Allow-Headers in preflight response.   抱这个错是怎么回事 2018-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

45. 导出微信小游戏代码报错gameThirdScriptError [ 94%]

... property 'events' of undefined     at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)     at http://127.0.0.1:52880/game/code.js:14:71     at Array.forEach (<anonymous>)     at Object.__init (http://127.0.0.1:52880/game/code.js:14:36)     at http://127....

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

46. http无法访问服务器 [ 94%]

http无法访问服务器 已在nginx下开启跨域访问,通过ide调试打开chrome能正常访问,但是直接在浏览器里面就无法访问,http post method 变为Request Method: OPTIONS,content-type:本来位protobuf也变为text-pain,这是什么原因呢 2018-07-11 添加评...

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

47. iOS真机运行报错--- 加载游戏失败,可能由于您的网络不稳定,请退出重进 [ 93%]

...: 2018-03-15 11:24:58.264754+0800 MineSweeper6[7091:2932031] xhr.GET url=http://stand.alone.version/index.html 2018-03-15 11:24:58.265521+0800 MineSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSweeper6[709...

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

48. 打包后报错 Unexpected token in JSON at position 266 [ 93%]

...  at JSON.parse (<anonymous>)     at Function.MiniAdpter.getJson (http://127.0.0.1:31158/game/code.js:21236:15)     at Function.MiniLoader.onReadNativeCallBack (http://127.0.0.1:31158/game/code.js:22404:25)     at Handler.__proto.runWith (http://127.0.0.1:31158/game/code.js:725:41)   ...

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

49. 怎么使用http请求 [ 93%]

怎么使用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

50. 微信小游戏打包后SFS2X.d.ts没有打包成js文件 导致运行报错未找到 [ 93%]

...ack function ReferenceError: SFS2X is not defined     at Server.initSFS (http://127.0.0.1:17168/game/code.js:130617:26)     at GameMain.initGame (http://127.0.0.1:17168/game/code.js:176074:20)     at EventHandler.__proto.runWith (http://127.0.0.1:17168/game/code.js:19043:41)     at ResInfo._...

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