监听设备翻转,自动刷新页面
<script>
var supportsOrientationChange = "onorientationchange" in window,
orientationEvent = supportsOrientationChange ? "orientationchange" : "resize";
window.addEventListener(orientationEvent, function() {
//window.orientation 设备翻转方向;
//翻转后刷新页面
window.location.reload();
}, false);
</script>