// get the type of clientjudgeClient() {let u = navigator.userAgent;let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Adr") > -1; //判断是否是 android终端let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //判断是否是 iOS终端if (isAndroid) {console.log("Android")} else if (isIOS) {console.log("iOS")} else {console.log("其它")}},