uniapp判断手机是安卓还是ios

	methods: {
		isIos() {
			const info = wx.getSystemInfoSync()
			if (info.system.indexOf('Android') > -1) {
				// console.log('安卓')
				this.ios = false
			} else {
				// console.log('ios')
				// uni.getDeviceInfo().deviceType
				this.ios = true
			}
		},
	},
	mounted() {
		this.isIos()
	},

你可能感兴趣的:(uni-app,智能手机,android)