------------------------------------------监听回车事件兼容-----------------------------------------------------------
var keyCode=event.keyCode ? event.keyCode:event.which?event.which:event.charCode;if(keyCode == "13"){}----------------------------------------------------END---------------------------------------------------------------------------------------------------------------------倒计时------------------------------------------------------------------var wait=60;var TIMER = setTimeout(function(){ if(wait==0) { wait=60;//wait 为倒计时 目前暂定60秒 } else{ console.log(wait); wait--; TIMER = setTimeout(arguments.callee,1000); }},1000);----------------------------------------------------END------------------------------------------------------------------
新闻热点
疑难解答