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

!11608 示例代码修改

Merge pull request !11608 from mayunteng/master
......@@ -359,7 +359,7 @@ off(type: 'cooperation', callback?: AsyncCallback\<void>): void
function callback(event) {
console.log(`Keyboard mouse crossing event: ${JSON.stringify(event)}`);
return false;
},
}
try {
inputDeviceCooperate.on('cooperation', callback);
inputDeviceCooperate.off("cooperation", callback);
......@@ -372,7 +372,7 @@ try {
function callback(event) {
console.log(`Keyboard mouse crossing event: ${JSON.stringify(event)}`);
return false;
},
}
try {
inputDeviceCooperate.on('cooperation', callback);
inputDeviceCooperate.off("cooperation");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册