appSource() {
const u = navigator.userAgent,
app = navigator.appVersion;
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isiOS) {
console.log("ios");
this.ios = true;
} else {
console.log("andriod");
this.ios = false;
}
},
文章评论