File​Reader的基本使用

FileReader简介 FileReader 对象允许Web应用程序异步读取存储在用户计算机上的文件(或原始数据缓冲区)的内容,使用 File 或 Blob 对象指定要读取的文件或数据。 FileReader是一种异步文件读取机制,结合input:file可以很方便的读取本地文件。 input:file <input type="file" id="inputBox"> input的file类型
相关文章
相关标签/搜索