检测竖屏 横屏

            (function() {
                var hm = document.createElement("script");
                hm.src = "http://tajs.qq.com/stats?sId=52797855";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
原文地址:https://www.cnblogs.com/llllpzyy/p/10103938.html