var a = document.getElementsByTagName('a');for(var i = 0; i < a.length; i++) { a[i].addEventListener('touchstart',function(){},false); }
添加以上代碼,touch按下去後,發現a的active效果生效了spa