提交 4b989024 编写于 作者: Z zengyawen

Modify the docs specification

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 ff22c3ee
...@@ -160,7 +160,7 @@ getAppMemorySize(callback: AsyncCallback\<number>): void; ...@@ -160,7 +160,7 @@ getAppMemorySize(callback: AsyncCallback\<number>): void;
``` ```
## appManager.getProcessRunningInfos<sup>8+</sup> ## appManager.getProcessRunningInfos<sup>8+</sup>
getProcessRunningInfos(): Promise<Array\<ProcessRunningInfo>>; getProcessRunningInfos(): Promise\<Array\<ProcessRunningInfo>>;
获取有关运行进程的信息。 获取有关运行进程的信息。
...@@ -168,9 +168,9 @@ getProcessRunningInfos(): Promise<Array\<ProcessRunningInfo>>; ...@@ -168,9 +168,9 @@ getProcessRunningInfos(): Promise<Array\<ProcessRunningInfo>>;
**返回值:** **返回值:**
| 类型 | 说明 | | 类型 | 说明 |
| -------- | -------- | | -------- | -------- |
| Promise<Array\<ProcessRunningInfo>> | 获取有关运行进程的信息。 | | Promise\<Array\<ProcessRunningInfo>> | 获取有关运行进程的信息。 |
**示例:** **示例:**
...@@ -184,7 +184,7 @@ getProcessRunningInfos(): Promise<Array\<ProcessRunningInfo>>; ...@@ -184,7 +184,7 @@ getProcessRunningInfos(): Promise<Array\<ProcessRunningInfo>>;
## appManager.getProcessRunningInfos<sup>8+</sup> ## appManager.getProcessRunningInfos<sup>8+</sup>
getProcessRunningInfos(callback: AsyncCallback<Array\<ProcessRunningInfo>>): void; getProcessRunningInfos(callback: AsyncCallback\<Array\<ProcessRunningInfo>>): void;
获取有关运行进程的信息。 获取有关运行进程的信息。
...@@ -192,9 +192,9 @@ getProcessRunningInfos(callback: AsyncCallback<Array\<ProcessRunningInfo>>): voi ...@@ -192,9 +192,9 @@ getProcessRunningInfos(callback: AsyncCallback<Array\<ProcessRunningInfo>>): voi
**参数:** **参数:**
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| callback | AsyncCallback<Array\<ProcessRunningInfo>> | 否 | 获取有关运行进程的信息。 | | callback | AsyncCallback\<Array\<ProcessRunningInfo>> | 否 | 获取有关运行进程的信息。 |
**示例:** **示例:**
......
...@@ -870,7 +870,7 @@ DAHelper.query( ...@@ -870,7 +870,7 @@ DAHelper.query(
## DataAbilityHelper.call ## DataAbilityHelper.call
call(uri: string, method: string, arg: string, extras: PacMap): Promise<PacMap> call(uri: string, method: string, arg: string, extras: PacMap): Promise\<PacMap>
调用DataAbility的扩展接口,使用Promise方式作为异步方法。 调用DataAbility的扩展接口,使用Promise方式作为异步方法。
...@@ -906,7 +906,7 @@ dataAbilityHelper.call("dataability:///com.example.jsapidemo.UserDataAbility", " ...@@ -906,7 +906,7 @@ dataAbilityHelper.call("dataability:///com.example.jsapidemo.UserDataAbility", "
## DataAbilityHelper.call ## DataAbilityHelper.call
call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback<PacMap>): void call(uri: string, method: string, arg: string, extras: PacMap, callback: AsyncCallback\<PacMap>): void
调用DataAbility的扩展接口,使用callback方式作为异步方法。 调用DataAbility的扩展接口,使用callback方式作为异步方法。
......
# Zip模块(JS端SDK接口) # Zip模块(JS端SDK接口)
## 使用限制
无。
## 导入模块 ## 导入模块
```javascript ```javascript
...@@ -9,7 +7,7 @@ import zlib from '@ohos.zlib'; ...@@ -9,7 +7,7 @@ import zlib from '@ohos.zlib';
``` ```
## zlib.zipFile ## zlib.zipFile
zipFile(inFile:string, outFile:string, options: Options): Promise<void>; zipFile(inFile:string, outFile:string, options: Options): Promise\<void>
压缩接口(Promise形式)。 压缩接口(Promise形式)。
**系统能力:** SystemCapability.BundleManager.Zlib **系统能力:** SystemCapability.BundleManager.Zlib
...@@ -72,7 +70,7 @@ zlib.zipFile(inFile , outFile, options).then((data) => { ...@@ -72,7 +70,7 @@ zlib.zipFile(inFile , outFile, options).then((data) => {
## zlib.unzipFile ## zlib.unzipFile
unzipFile(inFile:string, outFile:string, options: Options): Promise<void>; unzipFile(inFile:string, outFile:string, options: Options): Promise\<void>
解压文件,解压完成返回执行结果(Promise形式)。 解压文件,解压完成返回执行结果(Promise形式)。
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
| 属性 | 类型 | 描述 | | 属性 | 类型 | 描述 |
| -------- | -------- | -------- | | -------- | -------- | -------- |
| $r | (key:&nbsp;string)&nbsp;=&gt;&nbsp;string | 获取资源限定下具体的资源内容。例如:this.$r('strings.hello')。<br/>参数说明:<br/>-&nbsp;key:定义在资源限定文件中的键值,如strings.hello。<br/> | | $r | (key:&nbsp;string)&nbsp;=&gt;&nbsp;string | 获取资源限定下具体的资源内容。例如:this.$r('strings.hello')。<br/>参数说明:<br/>-&nbsp;key:定义在资源限定文件中的键值,如strings.hello。 |
**res-defaults.json示例:**<br/> **res-defaults.json示例:**<br/>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册