//判断安卓和ios
appSource() {
const u = navigator.userAgent;
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
if (isiOS) {
return "ios";
} else {
return "android";
}
},
标签:isiOS,Vue,return,安卓,ios,appSource,const
来源: https://www.cnblogs.com/ximenchuifa/p/14657119.html