怎么做设备验证,设备验证为ios端,直接让ios端显示无法使用的,要怎么做
编写设备验证方法
onLoad() {
let that = this;
wx.getSystemInfo({
success:function(res){
console.log("wx.getSystemInfo")
console.log(res)
if(res.platform=="ios"){
that.isIOS = !that.isIOS;
}
}
});
}
根据返回的结果是否为ios来修改某一处的样式以及内容
返回结果内容可以参考这篇文章
https://blog.csdn.net/Gabriel_wei/article/details/116495981