日期:2014-05-17 浏览次数:20441 次
if(navigator.userAgent.match(/Android/i)) {
// Do something!
// Redirect to Android-site?
//安卓的设备
}
if ((navigator.userAgent.indexOf('iPhone') != -1)
------解决方案--------------------
(navigator.userAgent.indexOf('iPod') != -1)
------解决方案--------------------
(navigator.userAgent.indexOf('iPad') != -1)) {
//苹果的设备
}