标签:地址 页面 rom user download 实现 识别 获取 logs
//navigator.userAgent获取机型
var isAndroid = navigator.userAgent.match(/android/ig); var isIos = navigator.userAgent.match(/iphone|ipod/ig); var isWeixin = navigator.userAgent.match(/MicroMessenger/ig); if (isWeixin) { var download_href = ‘微信端地址‘; } else if (isIos) { var download_href = ‘ios下载地址‘; } else if (isAndroid) { var download_href = ‘android下载地址‘; } else { var download_href = ‘下载页面‘; }
标签:地址 页面 rom user download 实现 识别 获取 logs
原文地址:http://www.cnblogs.com/bella-lin/p/7810591.html