Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在我的设备上收听转弯事件
$('body').bind('turn', function(event, info){ alert(info.orientation); console.log(info.orientation); // landscape or profile });
此事件仅在开始时触发一次。我如何让它继续听?
包含 jquery 移动框架后:
$(window).bind( 'orientationchange', function(e){ alert(jQuery.event.special.orientationchange.orientation()); });