本地数据
SheetJS 是一个用于从电子表格读取和写入数据的 JavaScript 库。
¥SheetJS is a JavaScript library for reading and writing data from spreadsheets.
没有标准的跨平台方法来读写文件和数据。readFile
[^1] 和 writeFile
[^2] 方法依赖于特定于平台的 API 来执行文件读写操作。
¥There is no standard cross-platform approach to read and write files and data.
The readFile
[^1] and writeFile
[^2] methods rely on platform-specific APIs to
perform the file read and write operations.
许多平台不支持 readFile
和 writeFile
使用的技术,但提供其他方法。通常,这些方法处理 Uint8Array
对象或二进制字符串,并与 read
[^3] 和 write
[^4] 方法配合良好。
¥Many platforms do not support the techniques used by readFile
and writeFile
but offer other methods. Typically those methods process Uint8Array
objects or
binary strings and play nice with the read
[^3] and write
[^4] methods.
本节中的演示涵盖常见的本地 API:
¥Demos in this section cover common local APIs:
- 本地文件访问 - Reading and writing files using various platform APIs
- Web SQL 数据库 - Reading and writing data in an in-browser SQL database
- 本地存储 API - Reading and writing data in an in-browser Key-Value store
- 剪贴板数据 - Reading and writing data and files in the clipboard
- 索引数据库 API - Reading and writing data in an in-browser NoSQL database
desktop 和 mobile 演示涵盖了 iOS、Android、Windows、macOS 和 Linux 应用的 API。
¥The desktop and mobile demos cover APIs for iOS, Android, Windows, macOS and Linux applications.
[^1]: 见 readFile
于 "读取文件"
¥See readFile
in "Reading Files"
[^2]: 见 writeFile
于 "写入文件"
¥See writeFile
in "Writing Files"
[^3]: 见 read
于 "读取文件"
[^4]: 见 write
于 "写入文件"