1、粘贴就好了
appSource () {
const u = navigator.userAgent
const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
if (isiOS) {
this.Isphone = 'ios'
} else {
this.Isphone = 'android'
}
}
------------------------------------------------------- 再见 -----------------------------------------------------