chrome版本43.0.2357.81中的jquery mobile 1.2.0黑屏 [英] jquery mobile 1.2.0 blank screen in chrome Version 43.0.2357.81

查看:118
本文介绍了chrome版本43.0.2357.81中的jquery mobile 1.2.0黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jquery mobile 1.2.0版本空白屏幕,而在chrome版本43.0.2357.81 m中滑动.在其他浏览器中可以.

jquery mobile 1.2.0 version blank screen while slide in chrome Version 43.0.2357.81 m. in other browsers ok.

推荐答案

已经有了答案.

从这里查看我的答案 动画结束webkitend错误

Check out my answer from here Animation end webkitend bug

最好升级到最新版本.

You're better off moving to the latest version.

修改

要修复-只需在加载jquerymobile.js之前添加一个地方-

To fix - just add somewhere before loading jquerymobile.js -

// Override of $.fn.animationComplete must be called before initialise jquery mobile js
   $(document).bind('mobileinit', function() {
     $.fn.animationComplete = function(callback) {
       if ($.support.cssTransitions) {
         var superfy= "WebKitTransitionEvent" in window ? "webkitAnimationEnd" : "animationend";
         return $(this).one(superfy, callback);
       } else {

         setTimeout(callback, 0);
         return $(this);
       }
     };

   })

这篇关于chrome版本43.0.2357.81中的jquery mobile 1.2.0黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆