大约有 16 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0036 秒)
...("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
...onseType = 'arraybuffer'; xhr.open('GET', "res/font/Arial.ttf", true); xhr.onload = function () { Laya.Browser.window.conch.setFontFaceFromBuffer("Arial", xhr.response); setInterval(onDrawFrame, 15); }; xhr.onerror = function (e) { alert('>>>download ttf error :' + e); }; xhr.send(null); //...
来源: Laya_社区 发布时间: 20181106
...("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); // 清除...
来源: Laya3.0_文档 发布时间: 20230303
...打开了一个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
...HttpRequest(); xhr.open('GET','http://10.10.20.19:7766/version',true); xhr.onload=(e)=>{ var f = window.appcache.getCachePath()+'/version'; fs_writeFileSync(f,xhr.responseText);//把结果写到f文件中 url='';//自己决定url loadUrl(url); } xhr.onerror=()=>{ ...
来源: Laya_社区 发布时间: 20170703
...rcent.toFixed(2) + '%'); } }); // 设置请求完成后的处理函数 xhr.onload = function () { if (xhr.status === 200) { console.log("文件下载完成!"); } else { console.error("请求失败: " + xhr.status); } }; // 设置请求失败的处理函数 xhr.onerror = function () { console.error...
来源: Laya3.0_文档 发布时间: 20250214