提交 9229cb58 编写于 作者: M mayunteng_1

Signed-off-by: mayunteng_1 <mayunteng@huawei.com>

Change-Id: I571f320541a5ffc041ae62988f04015fdfd3a464
上级 7db4ebe4
......@@ -73,6 +73,9 @@ function listener(data) {
console.log("type: " + data.type + ", deviceId: " + data.deviceId);
}
// 监听输入设备的热插拔事件
inputDevice.on("change", listener);
// 单独取消listener的监听。
inputDevice.off("change", listener);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册