没有“ jQuery”魔术,只有Javascript计时器。
var pressTimer;$("a").mouseup(function(){ clearTimeout(pressTimer); // Clear timeout return false;}).mousedown(function(){ // Set timeout pressTimer = window.setTimeout(function() { ... Your Code ...},1000); return false; });


