【发布时间】:2016-10-26 06:29:42
【问题描述】:
我遇到了cordova RemoteControl plugin,要监听它的事件,需要注册 addEventListener。
//listen for the event
document.addEventListener("remote-event", function(event) {
//do something
});
我这样做是否合适?
【问题讨论】:
-
我想你可以像这样使用
HostListenerstackoverflow.com/questions/36349362/how-to-use-hostlistener -
你能帮忙提供答案吗?
-
你找到解决办法了吗?
标签: angular