conststr= navigator.userAgent.toLowerCase()constver=str.match(/cpu iphone os (.*?) like mac os/)if(!ver){//非IOS系統(tǒng)// 引入fastclick 做相關(guān)處理}else{if(parseInt(ver[1])<11){// 引入fastclick 做相關(guān)處理}}
FastClick.prototype.focus = function(targetElement) {
? targetElement.focus();
};