简体   繁体   English

jQuery Mobile和PhoneGap:如何检测菜单按钮是否被按下

[英]jQuery Mobile and PhoneGap : How to detect menu button is presses

I've tried the PhoneGap code at but it doesnt work. 我已经尝试过PhoneGap代码,但是它不起作用。 The click on menubutton on my Android device doesn't fire anything. 在我的Android设备上单击菜单按钮不会触发任何操作。 I've seen people using native android menu handler, but I want a JavaScript one http://docs.phonegap.com/en/1.3.0/phonegap_events_events.md.html#menubutton Can someone help me? 我见过有人在使用本机android菜单处理程序,但我想要一个JavaScript http://docs.phonegap.com/en/1.3.0/phonegap_events_events.md.html#menubutton有人可以帮我吗? Please? 请?

Simon是正确的,等待deviceready事件以确保phonegap正在运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM