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 });
このイベントは、開始時に 1 回だけ発生します。聞き続けるにはどうすればいいですか?
jquery モバイル フレームワークを含めた後:
$(window).bind( 'orientationchange', function(e){ alert(jQuery.event.special.orientationchange.orientation()); });