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

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

1. var text = new Laya.Text();为什么text.pivot(200,200);不起作用 [ 100%]

...到label的text属性 调试工具正常,真机报错:Request failed Status:0 text( 加载场景失败) 问题状态 最新活动: 2018-03-22 17:33 浏览: 1046 关注: 2 人 Prajna • 2018-03-22 17:44 可以了,非常感谢 Monica • 2018-03-22 17:46 @Prajna:不客气~

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

2. 引擎中的修改意见 [ 99%]

...gs[i]); } this._text = text; } } 3、HTTPRequest中错误输出:前面的statusstatusText都是空的 根本打印不出任何东西。 /** * @private * 请求出错侦的听处理函数。 * @param e 事件对象。 */ protected function _onError(e:*):void { error("Request failed Status:" + th...

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

3. 怎么使用http请求 [ 97%]

...onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.responseText); var data = JSON.parse(xhr.responseText); //console.log(data); if (data.result_status == 1 && data.top_list) { WxRankMana...

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

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

... = function () {             if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 400)) {                 if(JSON.parse(xhr.responseText).status===1){                     console.log ('登录成功')                     cc.director.lo...

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

5. HTMLDivElement 控件 显示图片问题, [ 79%]

...? 这是错误提示: Failed to load resource: the server responded with a status of 404 (Not Found) 2017-05-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 已经修复,下个版本...

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

6. 关于worker.js的使用问题 [ 77%]

.../roc/roc_h5/bin/common/scene/avatar/0000jn_002_2_1.png Request Method: GET Status Code: 200 OK     请问是哪里搞错了吗 如何去掉错误的那次加载 附件 : --> 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

7. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 64%]

...ue); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL....

来源: Laya2.0_文档 发布时间: 20210715

8. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

...ue); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL....

来源: Laya2.0_文档 发布时间: 20210714

9. 二进制图片(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 63%]

...ue); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window.URL....

来源: Laya2.0_文档 发布时间: 20210714

10. Native下http请求,Error事件中的error对象错误码全都是404 [ 60%]

...这些问题了 douzhix • 2018-06-21 10:59 并没有,我们直接改成status都按200处理,然后再返回数据中用result去做这些错误处理了,laya的问题,我们也没办法改,只能换实现方法了,项目不等人 Laya_Aaron • 2018-05-29 11:12 项目测试地址发...

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