diff --git a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
index 798b366a2a8d3b5508492c29da13d86957dd90c4..25d00302ae56353fffee7f3b733d490904bbd5e4 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-inputmethod.md
@@ -10,7 +10,7 @@
import inputMethod from '@ohos.inputMethod';
```
-## inputMethod8+
+## inputMethod6+
常量值。
@@ -21,7 +21,7 @@ import inputMethod from '@ohos.inputMethod';
| MAX_TYPE_NUM | number | 是 | 否 | 可支持的最大输入法个数。 |
-## InputMethodProperty8+
+## InputMethodProperty6+
输入法应用属性。
@@ -50,7 +50,7 @@ getInputMethodController(): InputMethodController
```js
var InputMethodController = inputMethod.getInputMethodController();
```
-## inputMethod.getInputMethodSetting8+
+## inputMethod.getInputMethodSetting6+
getInputMethodSetting(): InputMethodSetting
@@ -60,9 +60,9 @@ getInputMethodSetting(): InputMethodSetting
**返回值:**
- | 类型 | 说明 |
- | ----------------------------------------- | ---------------------------- |
- | [InputMethodSetting](#InputMethodSetting) | 回调返回当前客户端设置实例。 |
+| 类型 | 说明 |
+| ----------------------------------------- | ---------------------------- |
+| [InputMethodSetting](#InputMethodSetting) | 回调返回当前客户端设置实例。 |
**示例:**
@@ -84,9 +84,9 @@ stopInput(callback: AsyncCallback<boolean>): void
**参数:**
- | 参数名 | 类型 | 必填 | 说明 |
- | -------- | -------- | -------- | -------- |
- | callback | AsyncCallback<boolean> | 是 | 返回输入法隐藏是否成功。 |
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- | -------- | -------- | -------- |
+| callback | AsyncCallback<boolean> | 是 | 返回输入法隐藏是否成功。 |
**示例:**
@@ -106,9 +106,9 @@ stopInput(): Promise<boolean>
**返回值:**
- | 类型 | 说明 |
- | -------- | -------- |
- | Promise<boolean> | 返回输入法隐藏是否成功。 |
+| 类型 | 说明 |
+| -------- | -------- |
+| Promise<boolean> | 返回输入法隐藏是否成功。 |
**示例:**
@@ -118,7 +118,7 @@ stopInput(): Promise<boolean>
console.info('stopInput isSuccess = ' + isSuccess);
```
-## InputMethodSetting8+
+## InputMethodSetting6+
下列API示例中都需使用[getInputMethodSetting](#getInputMethodSetting)回调获取到InputMethodSetting实例,再通过此实例调用对应方法。
@@ -131,9 +131,9 @@ listInputMethod(callback: AsyncCallback<Array<InputMethodProperty>>)
**系统能力**: SystemCapability.Miscservices.InputMethodFramework
**参数:**
- | 参数名 | 类型 | 必填 | 说明 |
- | -------- | -------------------------------------------------- | ---- | ---------------------- |
- | callback | Array<[InputMethodProperty](#InputMethodProperty)> | 是 | 返回已安装输入法列表。 |
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- | -------------------------------------------------- | ---- | ---------------------- |
+| callback | Array<[InputMethodProperty](#InputMethodProperty)> | 是 | 返回已安装输入法列表。 |
**示例:**
```js
@@ -154,9 +154,9 @@ listInputMethod(): Promise<Array<InputMethodProperty>>
**系统能力**: SystemCapability.Miscservices.InputMethodFramework
**返回值:**
- | 类型 | 说明 |
- | ----------------------------------------------------------- | ---------------------- |
- | Promise> | 返回已安装输入法列表。 |
+| 类型 | 说明 |
+| ----------------------------------------------------------- | ---------------------- |
+| Promise> | 返回已安装输入法列表。 |
**示例:**
```js
diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-time.md b/zh-cn/application-dev/reference/apis/js-apis-system-time.md
index fbc8a59dc58e563881612040e6a862c8d2823629..26bd73ab70e30f7cc81805250792c82a0df3b142 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-system-time.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-system-time.md
@@ -1,6 +1,7 @@
# 设置系统时间
本模块用来设置、获取当前系统时间,设置、获取当前系统日期和设置、获取当前系统时区。
+
>  **说明:**
> 本模块首批接口从API version 7开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
@@ -200,7 +201,7 @@ getRealActiveTime(isNano?: boolean): Promise<number>
## systemTime.getRealTime8+
-getRealTime(callback: AsyncCallback<number>): void
+getRealTime(isNano?: boolean, callback: AsyncCallback): void;
获取自系统启动以来经过的时间,包括深度睡眠时间,使用callback形式返回结果。
@@ -228,7 +229,7 @@ getRealTime(callback: AsyncCallback<number>): void
## systemTime.getRealTime8+
-getRealTime(): Promise<number>
+getRealTime(isNano?: boolean): Promise;
获取自系统启动以来经过的时间,包括深度睡眠时间,使用Promise形式返回结果。
diff --git a/zh-cn/application-dev/reference/apis/js-apis-timer.md b/zh-cn/application-dev/reference/apis/js-apis-timer.md
index 16ce5e89fad5fc78d54ed02680f98782374a48cb..003c1f0c2544bbf65faa8a29b34b1227c9160eb9 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-timer.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-timer.md
@@ -3,6 +3,13 @@
## setTimeout
+## 导入模块
+
+
+```
+import Time from '@ohos.Time';
+```
+
setTimeout(handler[,delay[,…args]]): number
设置一个定时器,该定时器在定时器到期后执行一个函数。
@@ -20,7 +27,7 @@ setTimeout(handler[,delay[,…args]]): number
| number | timeout定时器的ID。 |
- 示例
- ```
+ ```js
export default {
setTimeOut() {
var timeoutID = setTimeout(function() {
@@ -43,7 +50,7 @@ clearTimeout(timeoutID: number): void
| timeoutID | number | 是 | 要取消定时器的ID, 是由setTimeout()返回的。 |
- 示例
- ```
+ ```js
export default {
clearTimeOut() {
var timeoutID = setTimeout(function() {
@@ -74,7 +81,7 @@ setInterval(handler[, delay[, ...args]]): number
| number | intervalID重复定时器的ID。 |
- 示例
- ```
+ ```js
export default {
setInterval() {
var intervalID = setInterval(function() {
@@ -97,7 +104,7 @@ clearInterval(intervalID: number): void
| intervalID | number | 是 | 要取消的重复定时器的ID,是由 setInterval() 返回的。 |
- 示例
- ```
+ ```js
export default {
clearInterval() {
var intervalID = setInterval(function() {
@@ -107,3 +114,4 @@ clearInterval(intervalID: number): void
}
}
```
+