参考 loadBytes()

loadBytes()

This method is suitable for fetching files up to size of 64MB.

示例

语法

loadBytes(file, [callback], [errorCallback])

参数

file
String:

name of the file or URL to load

callback
Function:

function to be executed after loadBytes() completes

errorCallback
Function:

function to be executed if there is an error

返回值

Object: an object whose 'bytes' property will be the loaded buffer
This page is generated from the comments in src/io/files.js . Please feel free to edit it and submit a pull request!

相关参考