JS 鼠标、键盘 点击事件
//鼠标点击事件
$(function () {
document.onmousedown = function (event) {
//清空数据
second = 0;
}
});
//键盘的keydown事件
$(function () {
document.onkeydown = function (event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
//清空数据
second = 0;
}
});