js判断是否是手机页面
话不多说,请看代码: [removed] if (/mobile/i.test(navigator.userAgent) || /android/i.test(navigator.userAgent)) document.body.classList.add('mobile'); window.addEventListener('load', function(event) { setTimeout(function () { hab('#sup-post-2'); hab('#gd1-inner'); }, 1000); }); [removed]
下载地址
用户评论