diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-fs.md b/zh-cn/application-dev/reference/apis/js-apis-file-fs.md index d64f821384252f94ecfb15ccb4ca72f623442a5a..5375a3f055c573b43f33c01f6eebbebc3865f61c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-fs.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-fs.md @@ -149,7 +149,7 @@ access(path: string): Promise<boolean> | 类型 | 说明 | | ------------------- | ---------------------------- | - | Promise<boolean> | Promise对象。返回boolean。 | + | Promise<boolean> | Promise对象。返回boolean,表示文件是否存在。 | **示例:** @@ -209,6 +209,12 @@ accessSync(path: string): boolean | ------ | ------ | ---- | ------------------------------------------------------------ | | path | string | 是 | 文件应用沙箱路径。 | +**返回值:** + + | 类型 | 说明 | + | ------------------- | ---------------------------- | + | boolean | 返回boolean,表示文件是否存在。 | + **示例:** ```js