在main.js里面写
try{
let versionNumber = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/)[1].replace(/_/g,".")
if (!(/iphone|ipod|ipad/i.test(navigator.appVersion))||Number(versionNumber)<11) {
FastClick.attach(document.body)
}
}catch(e){
console.log(e)
}
网友评论