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 Mon Dec 03 2018 17:48:51 GMT+0800 (CST)