标签:roi oid nav 判断 苹果 user 手机 gen one
if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
alert(‘苹果‘);
} else if (/(Android)/i.test(navigator.userAgent)) {
alert(‘安卓‘);
} else {
alert(‘电脑‘);
};
标签:roi oid nav 判断 苹果 user 手机 gen one
原文地址:http://www.cnblogs.com/yzyh/p/7531374.html