提交 c79c7308 编写于 作者: S sunwenyu123

ArkTS适配

Signed-off-by: Nsunwenyu123 <sunwenyu5@huawei.com>
Change-Id: Ic0c16151b55e104c9ef9e6b0dd26f42673657ab2
上级 05e78382
......@@ -80,7 +80,7 @@ off(type: 'drag', callback?: Callback&lt;DragState&gt;): void;
**示例**
```js
```ts
// 取消注册单个回调函数
function single_callback(event : DragState) {
console.log(`Drag interaction event: ${JSON.stringify(event)}`);
......@@ -93,7 +93,7 @@ try {
console.log(`Execute failed, error: ${JSON.stringify(error, [`code`, `message`])}`);
}
```
```js
```ts
// 取消注册所有回调函数
function all_callback(event : DragState) {
console.log(`Drag interaction event: ${JSON.stringify(event)}`);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册