function isAnd(){
var u = navigator.userAgent;
var isAndoroid = u.indexOf(‘Android‘)>-1
return isAndoroid
}
例:
if(isAnd()){
//此处为安卓机型
}else{
//此处为IOS机型
}
2022-09-30 15:37:44
function isAnd(){
var u = navigator.userAgent;
var isAndoroid = u.indexOf(‘Android‘)>-1
return isAndoroid
}
例:
if(isAnd()){
//此处为安卓机型
}else{
//此处为IOS机型
}