H5页面区分Andoroid与IOS
function isAnd(){
var u = navigator.userAgent;
var isAndoroid = u.indexOf('Android')>-1
return isAndoroid
}
例:
if(isAnd()){
//此处为安卓机型
}else{
//此处为IOS机型
}
function isAnd(){
var u = navigator.userAgent;
var isAndoroid = u.indexOf('Android')>-1
return isAndoroid
}
例:
if(isAnd()){
//此处为安卓机型
}else{
//此处为IOS机型
}