diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-environment.md b/zh-cn/application-dev/reference/apis/js-apis-file-environment.md index f6bb1c415116c14505e2cc211caa15e78c1ccc99..c7d9fd584acdf9c789c2f38c36e9f43909d38dfd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-environment.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-environment.md @@ -3,7 +3,7 @@ 该模块提供环境目录能力,获取内存存储根目录、公共文件根目录的JS接口。 > **说明:** -> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 +> 本模块首批接口从API version 8开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 > 本模块接口为系统接口,三方应用不支持调用。 > 本模块支持对错误码进行处理,错误码及其适配方式[参考文档](../errorcodes/errorcode-filemanagement.md#错误码适配指导)。 @@ -25,7 +25,7 @@ getStorageDataDir():Promise<string> | 类型 | 说明 | | --------------------- | ---------------- | -| Promise<string> | 返回存存储根目录 | +| Promise<string> | 返回存储根目录 | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md b/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md index 511211522f361c78bac6ceb98779fa216a3d5c6d..3fbf979eaeb97928b5d92528c46067b18fbf3d52 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md +++ b/zh-cn/application-dev/reference/apis/js-apis-file-securityLabel.md @@ -44,7 +44,7 @@ FA模型context的具体获取方法参见[FA模型](js-apis-inner-app-context.m ## securityLabel.setSecurityLabel -setSecurityLabel(path:string, type:dataLevel):Promise<void> +setSecurityLabel(path:string, type:DataLevel):Promise<void> 以异步方法设置数据标签,以promise形式返回结果。 @@ -55,7 +55,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void> | 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | -------------------------------------------- | | path | string | 是 | 文件路径 | -| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | +| type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | **返回值:** @@ -75,7 +75,7 @@ setSecurityLabel(path:string, type:dataLevel):Promise<void> ## securityLabel.setSecurityLabel -setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void>):void +setSecurityLabel(path:string, type:DataLevel, callback: AsyncCallback<void>):void 以异步方法设置数据标签,以callback形式返回结果。 @@ -86,7 +86,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void> | 参数名 | 类型 | 必填 | 说明 | | --------- | ------------------------- | ---- | -------------------------------------------- | | path | string | 是 | 文件路径 | -| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | +| type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | | callback | AsyncCallback<void> | 是 | 是否设置数据标签之后的回调 | **示例:** @@ -103,7 +103,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void> ## securityLabel.setSecurityLabelSync -setSecurityLabelSync(path:string, type:dataLevel):void +setSecurityLabelSync(path:string, type:DataLevel):void 以同步方法设置数据标签。 @@ -114,7 +114,7 @@ setSecurityLabelSync(path:string, type:dataLevel):void | 参数名 | 类型 | 必填 | 说明 | | --------- | ------ | ---- | -------------------------------------------- | | path | string | 是 | 文件路径 | -| type | dataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | +| type | DataLevel | 是 | 文件等级属性,只支持"s0","s1","s2","s3","s4" | **示例:**