diff --git a/zh-cn/application-dev/reference/apis/js-apis-fileio.md b/zh-cn/application-dev/reference/apis/js-apis-fileio.md index a09553121fc9f07f7ce95854c3ef77d1294ba6c1..074f5a954c6c18c569e3d00a76e3f9d484687480 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-fileio.md +++ b/zh-cn/application-dev/reference/apis/js-apis-fileio.md @@ -1376,9 +1376,9 @@ readTextSync(filePath: string, options?: { | options | Object | 否 | 支持如下选项:
- position,number类型,表示期望读取文件的位置。可选,默认从当前位置开始读取。
- length,number类型,表示期望读取数据的长度。可选,默认缓冲区长度减去偏移长度。
- encoding,string类型,当数据是 string 类型时有效,表示数据的编码方式,默认 'utf-8',仅支持 'utf-8'。 | - 返回值: - | 类型 | 说明 | - | --------------------- | ---------- | - | Promise<string> | 返回读取文件的内容。 | + | 类型 | 说明 | + | ------ | -------------------- | + | string | 返回读取文件的内容。 | - 示例: ```js