未验证 提交 23d4831d 编写于 作者: O openharmony_ci 提交者: Gitee

!10106 修正测试用例Async 回调

Merge pull request !10106 from wangziming/master
......@@ -824,11 +824,8 @@ This is a system API.
**Example**
```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, (error, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册