if ( navigator.userAgent.match( /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i ) ) { document.getElementsByClassName("content_mobile")[0].style.display = "block"; document.getElementsByClassName("content_web")[0].style.display = "none"; } else { document.getElementsByClassName("content_mobile")[0].style.display = "none"; document.getElementsByClassName("content_web")[0].style.display = "block"; }
@TOC
前端判断浏览器类型
最新推荐文章于 2024-07-29 08:30:00 发布