Class: BinaryLoader

Tiny. BinaryLoader

二进制数据加载

new Tiny.BinaryLoader(url)

Name Type Description
url string

文件地址

Example
var loader = new Tiny.loaders.BinaryLoader('https://zos.alipayobjects.com/rmsportal/rFWpAALTVTmVcfiQMRAV.png');
loader.load({
  onComplete: function (data) {
    console.log(data);
    // Uint8Array(895) [137, 80, 78, 71, 13...]
  }
});

Methods

执行加载

Name Type Description
opts object
Name Type Description
onComplete function

成功回调

onError function

失败回调

Documentation generated by JSDoc 3.4.3 on Fri Jul 09 2021 19:32:26 GMT+0800 (CST)