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

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

11. https怎么访问http上的php程序? [ 94%]

https怎么访问http上的php程序? 游戏资源已经部署到了阿里云的cdn上,并成功弄成https访问链接打开游戏。比如这个链接为https://game.xxx.com。游戏打开后登录时需要访问服务器上的login.php,在游戏js里这么慢链接hr.send('http://xxx.com/l...

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

12. 微信小游戏发布后,在开发者工具中报错, [ 94%]

...N at position 787 at JSON.parse (<anonymous>) at Function.e.getJson (http://127.0.0.1:37389/game/code.js:1:461434) at Function.e.onReadNativeCallBack (http://127.0.0.1:37389/game/code.js:1:514598) at t.e.runWith (http://127.0.0.1:37389/game/code.js:1:11995) at Function.success (http://127.0.0....

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

13. 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

14. 打包app,http无法设置content-type [ 94%]

打包app,http无法设置content-type 我明明设置了content-type为json,在浏览器里都正常,但是在手机运行器里就无法使用,我发的数据为"{"a":1}",到服务器上变成了 "{"a":1}"="",content-type也变成了application/x-www-form-urlencoded   代码如下: static...

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

15. 安卓app加载场景错误 [ 93%]

...安卓app访问,会报如下错误,不知道是怎么回事?  alert=http://192.167.0.100/h5/layawe ... 6756: TypeError: Cannot read property 'createTexture' of null var glTexture=this._source=gl.createTexture(); ^ TypeError: Cannot read property 'createTexture' of null at Texture2D.__proto._c...

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

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

17. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 92%]

...来 相关代码:(可以参考你们官网的粒子效果的例子:http://layaair.ldc.layabox.com/demo/?Particle_T1  ) 主要就是: Laya.loader.load("SnowParticle.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON);           public function onAssetsLoaded(settings:Pa...

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

18. 网络请求添加headers后 post数据错误 [ 91%]

...this.callbackHandler = callback; // this.errcallback = errcallback; //this.http.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.http.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.http.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.http.send(url, 'ch...

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

19. Laya ide 1.83 导出apk 加载场景失败 [ 91%]

...portJavaFunction callMethod  layaair/game/browser/ExportJavaFunction alerthttp://stand.alone.version/libs/laya.d3.js:37382: TypeError: Cannot read property 'width' of undefined 05-18 09:55:36.987: I/0(27649): minWidth=Math.min(minWidth,image.width); 05-18 09:55:36.987: I/0(27649):            ...

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

20. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 91%]

HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //...

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