Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
作为标题,我想处理body标签上的点击事件来释放文本输入的焦点。我正在使用 Phonegap 和 Jquerymobile。请帮忙!
非常感谢。
问题是什么?我用phonegap和jqm开发了很多应用程序,我从来没有注意到你描述的问题。blur 事件会自动触发。无论如何,您可以使用它来: jQuery('body').on('click',function(){ jQuery('input').trigger('blur'); })
jQuery('body').on('click',function(){ jQuery('input').trigger('blur'); })