摘要:
function clickThreeTime (){ var num = 0,timer; document.onclick = function (){ num++ if(num <3){ if(timer){ clearTimeout(timer); } var timer = setTimeout(function (){ num = 0; },500); }else if(num == 3){ num = 0; alert('Click three times!');... 阅读全文