【问题标题】:jquery mobile 1.2.0 blank screen in chrome Version 43.0.2357.81chrome 版本 43.0.2357.81 中的 jquery mobile 1.2.0 空白屏幕
【发布时间】:2015-06-04 12:24:29
【问题描述】:

jquery mobile 1.2.0 版本在 chrome 版本 43.0.2357.81 m 中滑动时出现空白屏幕。在其他浏览器中正常。

【问题讨论】:

    标签: google-chrome jquery-mobile


    【解决方案1】:

    已经有答案了。

    从这里查看我的答案 Animation end webkitend bug

    您最好转到最新版本。

    编辑

    要修复 - 只需在加载 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 上的一般怪异,因为 WebKit 动画结束和动画结束都被调用。
    • 那个脚本或者我想添加函数 one()
    • 只需在调用 jquerymobile,js 之前插入该脚本...... one() 只是解释......
    猜你喜欢
    • 2018-01-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-17
    • 2021-01-17
    • 2018-09-01
    • 2018-09-18
    相关资源
    最近更新 更多