本文介绍了是否支持Android点击事件在其的WebView?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的PhoneGap和煎茶触摸显示表单。我使用图像作为按钮提交:
I'm using PhoneGap and Sencha Touch to display a form. I'm using an image as the button to submit it:
<img id='submit' src='button.png' />
我想接着听它被点击,并验证表单。如果我尝试下面的它似乎永远不会火:
I'd like to then listen to it be clicked and validate the form. If I try the following it never seems to fire:
Ext.get('submit').on('click', validateFn);
我失去了一些东西明显?我应该使用&LT;输入类型=形象... /&GT;
更新:对于这个问题,这是值得注意的是不一致的点击操作似乎是在Android的WebView中的错误或一系列漏洞的未来观众。有的的的错误就这个话题。
Update: For future viewers of this question it is worth noting that inconsistent click handling seems to be a bug or series of bugs in Android's WebView. There are several unresolved bugs on this topic.
推荐答案
是的,它不接受click事件
Yes it do accept click events
检查此链接并品尝了
这篇关于是否支持Android点击事件在其的WebView?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!