大约有 39 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
...e.files.length) { fileReader.readAsDataURL(file.files[0]); } }; fileReader.onload = function (evt) { if (Laya.Browser.window.FileReader.DONE == fileReader.readyState) { var sp = new Laya.Sprite(); sp.loadImage(fileReader.result, 0, 0, 300, 300); Laya.stage.addChild(sp); } } ``` 编译上面的代码...
来源: Laya2.0_文档 发布时间: 20210714
...le.files.length){ fileReader.readAsDataURL(file.files[0]); } }; fileReader.onload = function(evt):void { if(Laya.Browser.window.FileReader.DONE == fileReader.readyState) { var sp:Laya.Sprite = new Laya.Sprite(); sp.loadImage(fileReader.result,0,0,300,300); Laya.stage.addChild(sp); } } } } new Main; ...
来源: Laya3.0_文档 发布时间: 20251010
...load.onprogress= function(e:any):void { //上传进度 } this._http.upload.onload= function(e:any):void { } this._http.upload.onerror= function(e:any):void { } this._http.upload.onabort = function(e:any):void { } } } 上面是一个上传文件的示范,添加了 XMLHttpRequest 的upload的一些...
来源: Laya3.0_文档 发布时间: 20250104
...le.files.length){ fileReader.readAsDataURL(file.files[0]); } }; fileReader.onload = function(evt):void { if(Laya.Browser.window.FileReader.DONE == fileReader.readyState) { var sp:Laya.Sprite = new Laya.Sprite(); sp.loadImage(fileReader.result,0,0,300,300); Laya.stage.addChild(sp); } } } } new Main; ...
来源: Laya2.0_文档 发布时间: 20210715
...]); }; var fileReader:Object = new Browser.window.FileReader(); fileReader.onload = function(evt):void { if(Browser.window.FileReader.DONE==fileReader.readyState) { var sp:Sprite = new Sprite(); sp.loadImage(fileReader.result,0,0,300,300); Laya.stage.addChild(sp); } } } } } ``` 编译上面的...
来源: Laya2.0_文档 发布时间: 20210715
...llo A/art: art/runtime/java_vm_ext.cc:470] at FileReader.filereader.onload (apploader.js:6436:47)' 2019-03-15 08:45:13.438 8214-8265/com.layabox.hello A/art: art/runtime/java_vm_ext.cc:470] input: '0x68 0x74 0x74 0x70 0x3a 0x2f 0x2f 0x31 0x39 0x32 0x2e 0x31 0x36 0x38 0x2e 0x32 0x2e 0x3...
来源: Laya_社区 发布时间: 20190315
...rcent.toFixed(2) + '%'); } }); // 设置请求完成后的处理函数 xhr.onload = function () { if (xhr.status === 200) { console.log("文件下载完成!"); } else { console.error("请求失败: " + xhr.status); } }; // 设置请求失败的处理函数 xhr.onerror = function () { console.error...
来源: Laya3.0_文档 发布时间: 20251010
... setConnected("已断开"); } } window.onload = function() { connect(); log(log.buffer.join("\n")); document.getElementById("sendButton").onclick = function() { if (ws != null) { //发送SubmitBetInfo请...
来源: Laya_社区 发布时间: 20170724
...量预加载 Laya.loader.create(resource, Laya.Handler.create(this, this.onLoaded)); onLoaded(): void { //加载完成后的处理逻辑…… } ``` 使用预加载资源的示例代码如下: ```typescript //获取预加载的3D场景资源对象 var _Scene3D: Laya.Scene3D = Laya.Loader.getRes("x...
来源: Laya2.0_文档 发布时间: 20210714