首页 > 网站 > WEB开发 > 正文

Razer随手

2024-04-27 15:08:04
字体:
来源:转载
供稿:网友

------------------------------------------监听回车事件兼容-----------------------------------------------------------

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------------------------------------------------------------------


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表