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

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

1. httpRequest send返回Request failed Status:0 [ 100%]

httpRequest send返回Request failed Status:0 在本机环境下的例子中 可以正常显示图片 此图片是在玩一玩处取排行榜时返回的用户头像URL 代码如下 var WebGL = Laya.WebGL; // 程序入口 var GameMain = /** @class */ (function () { function GameMain() { //初始化...

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

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

...OR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData), "post", "json", ["content-type","application/json"]);     function processHandler(data){ console.log (data) } function comple...

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

3. 求解关于跨域的具体操作 [ 98%]

...(Laya.Event.ERROR, this, this.errorHandler); console.log("-----------------send------------------", url); xhr.send(url, "", "get", "arraybuffer"); 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aar...

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

4. 怎么使用http请求 [ 92%]

...setRequestHeader('content-type', 'application/x-www-form-urlencoded'); xhr.send("value=" + baseStr); 这个怎么改成laya的http请求 2018-08-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同...

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

5. HttpRequest感觉没有发成功 [ 91%]

....ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 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){ consol...

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

6. 排坑:Laya.HttpRequest()无效 [ 88%]

...OR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { console.log(data); } function completeHandler(e) { console.log(e); }下面是运行结果,...

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

7. Native 如何使用ttf? [ 88%]

...ror = function (e) { alert('>>>download ttf error :' + e); }; xhr.send(null); //这里以html5标准canvas接口为例 function onDrawFrame() { Laya.Browser.context.save(); Laya.Browser.context.font = "Arial"; Laya.Browser.context.fillStyle = "#00ff00"; Laya.Browser.context.restore(); } 然...

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

8. Laya.HttpRequest 没有调用回调方法? [ 88%]

....ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(data); console.log("1111"); } function errorHandler(data){ console.log("2222"); } function completeHandler(e){ console.log("3333"); } ...

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

9. 官方的示例贴上来,怎么没反映啊 [ 87%]

...OR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, ...

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

10. 请问怎么把arraybuffer作为图片显示出来 [ 84%]

...completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuffer) { //请问怎么把这个arraybuffer作为图片显示出来 } 2018-10-10 添加评论 免费帖 --> 分享...

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