利用浏览器标识处理 if( window.navigator.userAgent.toLowerCase().indexOf('mobile')== -1 ){ el.onclick = function(){} }