解决jquery mobile+phonegap页面切换闪屏问题
October 28, 2013
author: feeldesignstudio.com
author: feeldesignstudio.com
当jquery mobile在页面切换时出现闪屏,可以使用如下代码解决:
$(document).bind("mobileinit", function () {
$.extend($.mobile, {
defaultPageTransition : 'none'
});
$.mobile.defaultPageTransition = 'none';
$.mobile.defaultDialogTransition = 'none';
});
http://jnoodle.github.io/2013/10/jquery-mobile-phonegap-flicker-when-navigating-between-page
http://www.feeldesignstudio.com/2013/10/jquery-mobile-phonegap-flicker-when-navigating-between-page
© 未标明转载均为原创,在满足创作共用版权协议的基础上欢迎转载,请注明作者和出处链接
Tips: 评论也可以匿名哦,不一定注册的,只需要勾选匿名评论(I'd rather post as a guest)即可