js判断是否安卓设备
2021-4-19 金莎网 JavaScript
var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; if(isAndroid){ alert("是安卓"); }
2021-4-19 金莎网 JavaScript
var u = navigator.userAgent; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; if(isAndroid){ alert("是安卓"); }