0

当我使用orientationchange 时,它​​在检查Ipad 时永远不会被触发。

$(window).bind('orientationchange',function(e){
   alert("orientationchange");
});

有什么我想念的吗。我正在使用 jQuery v@1.8.0

4

1 回答 1

0

jQuery mobile 提供的仅此而已。

if (window.addEventListener) {  // IE 6, 7 check
    window.addEventListener("orientationchange", function () {
        // do your stuff here
    }, false);
}
于 2013-09-26T16:02:36.490 回答