我正在尝试使用 .focus() 来关注输入,然后在每次页面更改时自动调用键盘显示。这是我的代码:
jQuery:
$(questionPage).on("pageshow",function(){
$('input').focus();
});
HTML5:
<input type="email" name="text_email" style="padding: 0px; margin: 0px" placeholder=""value="" class="email"'/> ;
但是每次页面变化时,键盘都会出现并立即关闭。有人知道是什么原因造成的吗?关于如何解决它的任何提示?