87,902
社区成员
发帖
与我相关
我的任务
分享
<a href='b.html' id='aaa'></a>
<script>
setTimeout(function(){document.getElementById("aaa").click();}, 1200);
</script>
var onlongtouch;
var timer;
var touchduration = 500;
touchstart() {
timer = setTimeout(onlongtouch, touchduration);
}
touchend() {
if (timer)
clearTimeout(timer);
}
onlongtouch = function() { //do something };