readContent()

    类别

    File

    参数

    返回读取的文件内容。

    错误

    常见错误可参考。

    • 读取二进制文件内容并存入 fileContent 对象中。
    1. > var content = file.readContent()
    2. > content instanceof FileContent // 验证 content 是否为 FileContent 对象