diff --git a/zh-cn/application-dev/reference/apis/js-apis-call.md b/zh-cn/application-dev/reference/apis/js-apis-call.md
index f09dd20b04ab5b7b94a12f2fb9171db222141276..5fb798aceeb9d3e5b08efcec6484ec8df3018743 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-call.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-call.md
@@ -796,7 +796,7 @@ call.reject(rejectMessageOptions, (err, data) => {
## call.reject7+
-reject(callId: number, callback: AsyncCallback):
+reject(callId: number, callback: AsyncCallback\): void
拒绝来电。使用callback异步回调。
@@ -811,20 +811,11 @@ reject(callId: number, callback: AsyncCallback):
| callId | number | 是 | 呼叫Id。可以通过订阅callDetailsChange事件获得。 |
| callback | AsyncCallback<void> | 是 | 回调函数。 |
-**返回值:**
-
-| 类型 | 说明 |
-| ------------------- | --------------------------- |
-| Promise<void> | 以Promise形式异步返回结果。 |
-
**示例:**
```js
-let promise = call.reject(1);
-promise.then(data => {
- console.log(`reject success, promise: data->${JSON.stringify(data)}`);
-}).catch(err => {
- console.error(`reject fail, promise: err->${JSON.stringify(err)}`);
+call.reject(1, (err, data) => {
+ console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
});
```
@@ -1624,8 +1615,8 @@ on\(type: 'callDetailsChange', callback: Callback\): void
**示例:**
```js
-call.on('callDetailsChange', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.on('callDetailsChange', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1649,8 +1640,8 @@ on\(type: 'callEventChange', callback: Callback\): void
**示例:**
```js
-call.on('callEventChange', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.on('callEventChange', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1674,8 +1665,8 @@ on\(type: 'callDisconnectedCause', callback: Callback): vo
**示例:**
```js
-call.on('callDisconnectedCause', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.on('callDisconnectedCause', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1699,8 +1690,8 @@ on\(type: 'mmiCodeResult', callback: Callback\): void
**示例:**
```js
-call.on('mmiCodeResult', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.on('mmiCodeResult', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1724,8 +1715,8 @@ off\(type: 'callDetailsChange', callback?: Callback\): vo
**示例:**
```js
-call.off('callDetailsChange', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.off('callDetailsChange', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1749,8 +1740,8 @@ off\(type: 'callEventChange', callback?: Callback\): void
**示例:**
```js
-call.off('callEventChange', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.off('callEventChange', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1774,8 +1765,8 @@ off\(type: 'callDisconnectedCause', callback?: Callback\):
**示例:**
```js
-call.off('callDisconnectedCause', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.off('callDisconnectedCause', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -1799,8 +1790,8 @@ off\(type: 'mmiCodeResult', callback?: Callback\): void
**示例:**
```js
-call.off('mmiCodeResult', (err, data) => {
- console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
+call.off('mmiCodeResult', data => {
+ console.log(`callback: data->${JSON.stringify(data)}`);
});
```
@@ -2389,7 +2380,7 @@ setAudioDevice\(device: AudioDevice, options: AudioDeviceOptions, callback: Asyn
let audioDeviceOptions={
bluetoothAddress: "IEEE 802-2014"
}
-call.setAudioDevice(1, audioDeviceOptions, (err, value) => {
+call.setAudioDevice(1, audioDeviceOptions, (err, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
});
```
diff --git a/zh-cn/application-dev/reference/apis/js-apis-sim.md b/zh-cn/application-dev/reference/apis/js-apis-sim.md
index a3cf167b66502bf8482823d9e7818b0197d2f71b..9a73d5f485e38f088f98530e62ae0a1afb55159d 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-sim.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-sim.md
@@ -710,7 +710,7 @@ setShowName\(slotId: number, name: string, callback: AsyncCallback\): voi
**示例:**
```js
-let name = "中国移动";
+let name = "ShowName";
sim.setShowName(0, name, (err, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
});
@@ -744,7 +744,7 @@ setShowName\(slotId: number, name: string\): Promise\
**示例:**
```js
-let name = "中国移动";
+let name = "ShowName";
let promise = sim.setShowName(0, name);
promise.then(data => {
console.log(`setShowName success, promise: data->${JSON.stringify(data)}`);