var clickEvent = (function() {
if ('ontouchstart' in document.documentElement === true)
return 'touchstart';
else
return 'click';
})();
转载于:https://www.cnblogs.com/gaidalou/p/9927885.html
var clickEvent = (function() {
if ('ontouchstart' in document.documentElement === true)
return 'touchstart';
else
return 'click';
})();
转载于:https://www.cnblogs.com/gaidalou/p/9927885.html