conststr= navigator.userAgent.toLowerCase()constver=str.match(/cpu iphone os (.*?) like mac os/)if(!ver){//非IOS系统// 引入fastclick 做相关处理}else{if(parseInt(ver[1])<11){// 引入fastclick 做相关处理}}
FastClick.prototype.focus = function(targetElement) {
targetElement.focus();
};
网友评论