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

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

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

...("get", "res/atlas/comp.png", true); 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); // 清除...

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

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

...("get", "res/atlas/comp.png", true); 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); // 清除...

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

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

...("get", "res/atlas/comp.png", true); 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); // 清除...

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

4. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 93%]

...打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...

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

5. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 93%]

...打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...

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

6. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 93%]

...开了一个url. ### 事件 ​ 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...

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

7. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 63%]

... { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给...

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

8. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

... { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给...

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

9. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 62%]

... { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` ​ 这个例子是在worker中进行加载文件,加载完毕传...

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