js判断手机系统是ios还是android

let u = navigator.userAgent; let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; /

androidios手机系统