MUI识别移动设备系统(主要用于区分苹果还是安卓)

//检测移动设备型号
        var ua = navigator.userAgent.toLowerCase();
        console.log('ua:'+ua);
        if(/iphone|ipad|ipod/.test(ua)) {    //苹果手机 
            console.log('ios系统');
        }else if(/android/.test(ua)) {    //安卓手机
            console.log('安卓系统');
        }

原文地址:https://www.cnblogs.com/zhouheblog/p/12890006.html