摘要: window.addEventListener('orientationchange', function(event){ if ( window.orientation == 180 || window.orientation==0 ) { alert("竖屏"); //竖屏事件处理 } if( 阅读全文
posted @ 2016-08-19 17:24 CodeProducter 阅读(1048) 评论(0) 推荐(0)