提交 bd3e4e36 编写于 作者: Y YOUR_NAME

fix: fix docs

Signed-off-by: Nliujiandong <liujiandong1@huawei.com>
上级 96635ea1
......@@ -1733,8 +1733,8 @@ on(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback:
**示例:**
```js
radio.on('imsRegStateChange', 0, radio.ImsServiceType.TYPE_VIDEO, (err, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
radio.on('imsRegStateChange', 0, radio.ImsServiceType.TYPE_VIDEO, data => {
console.log(`callback: data->${JSON.stringify(data)}`);
});
```
......@@ -1762,8 +1762,8 @@ off(type: 'imsRegStateChange', slotId: number, imsType: ImsServiceType, callback
**示例:**
```js
radio.off('imsRegStateChange', 0, radio.ImsServiceType.TYPE_VIDEO, (err, data) => {
console.log(`callback: err->${JSON.stringify(err)}, data->${JSON.stringify(data)}`);
radio.off('imsRegStateChange', 0, radio.ImsServiceType.TYPE_VIDEO, data => {
console.log(`callback: data->${JSON.stringify(data)}`);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册