From 4c88bd3944113d5578be06a3beb03d7fbf94d3c0 Mon Sep 17 00:00:00 2001 From: zhangxingxia Date: Tue, 29 Mar 2022 16:55:15 +0800 Subject: [PATCH] update apis Signed-off-by: zhangxingxia --- zh-cn/application-dev/reference/apis/js-apis-fileio.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 a09553121f..074f5a954c 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 -- GitLab