Skip to main content

本地数据

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.

许多平台不支持 readFilewriteFile 使用的技术,但提供其他方法。通常,这些方法处理 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:

desktopmobile 演示涵盖了 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 于 "读取文件"

¥See read in "Reading Files"

[^4]: 见 write 于 "写入文件"

¥See write in "Writing Files"