jquery mobile phonegap中页面跳转白屏及抖动的解决办法<script src="http://code.jquery.com/jquery-1.6.4.min.js"></scri

来源:互联网 发布:苹果软件购买记录 编辑:程序博客网 时间:2024/05/22 11:41
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script><script>$(document).bind("mobileinit", function(){   if (navigator.userAgent.indexOf("Android") != -1)   {     $.mobile.defaultPageTransition = 'none';     $.mobile.defaultDialogTransition = 'none';   }});</script><script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
在相应页面加入这些代码即可,但要注意位置,必须在引用jquery mobiel之前。