appSource() {
const u = navigator.userAgent;
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isiOS) {
return "ios";
} else {
return "andriod";
}
},
appSource() {
const u = navigator.userAgent;
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isiOS) {
return "ios";
} else {
return "andriod";
}
},
本文标题:vue 判断设备是Android 还是 IOS
本文链接:https://www.haomeiwen.com/subject/qywpsctx.html
网友评论