判断手机访问-JavaScript 版(QQ 邮箱)
2017/2/14 9:46:03
以下代码源自 QQ 邮箱。
function isMobile() { return navigator.userAgent.match(/Mobile|iPhone|iPad|Android/i) || Math.min(screen.height,screen.width) <= 480; }
<<返回首页<<