.../////完整搶購代碼
某網站最近在舉辦半價秒殺網站
其實有技巧的code
首先能夠添加代碼io
//自動監視回車,直接回車提交
document.onkeydown=function(e){
var theEvent = e || window.event;
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
if (code == 13) {
seckill();
return false;
}
return true;
}event
提早調用function
showSeckill();驗證碼
打開秒殺頁面技巧
快人一步秒殺
window.setInterval("refreshQuestion();", 1000);co
數值能夠小一點document
不斷刷新驗證碼
手動設置焦點到輸入框
等待出驗證碼
切換到中文輸入法
出現驗證碼直接輸入並回車.