phonegap不会触发jquery click事件 [英] phonegap does not trigger jquery click event
问题描述
示例在此处 http://jsfiddle.net/V3qb9/57/.它可以在桌面和jsfiddle上完美运行-每当我更改单选按钮时,就会弹出警报.但是当我在phonegap上尝试时,根本不会触发click事件.有什么想法吗?
The example is here http://jsfiddle.net/V3qb9/57/. It runs perfectly on desktop and jsfiddle -- whenever I change the radio button, an alert is popped up. But when I try it on phonegap, the click event is not triggered at all. Any thoughts why?
推荐答案
我在body onload标签<body onload="init();">
中的phonegap使用的init方法中尝试了您的代码,并且我能够看到警报.
i tried your code in the init method used by phonegap in body onload tag <body onload="init();">
and i was able to see the alert.
我使用了Android的phonegap 1.9.0随附的示例.
i used the example that comes with phonegap 1.9.0 for android.
我在手机(果冻豆)上对其进行了测试.
i tested it on my phone (Jelly Bean).
这篇关于phonegap不会触发jquery click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!