JS - 判断手机是ios/安卓系统
/** 判断手机是ios/安卓 */
var userAgent = navigator.userAgent;
var isiOS = !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
var isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Adr') > -1;
/** 判断手机是ios/安卓 */
var userAgent = navigator.userAgent;
var isiOS = !!userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
var isAndroid = userAgent.indexOf('Android') > -1 || userAgent.indexOf('Adr') > -1;