大约有 9 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0033 秒)
...("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
...("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
...("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
...打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...
来源: Laya2.0_文档 发布时间: 20210714
...打开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...
来源: Laya2.0_文档 发布时间: 20210715
...开了一个url. ### 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,...
来源: Laya2.0_文档 发布时间: 20210715
... { 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
... { 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
... { 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