标签:doc click event onkeydown key 回车 document window mit
document.onkeydown = function (e) {
var theEvent = window.event || e;
var code = theEvent.keyCode || theEvent.which;
if (code == 13) {
$("#add_submit").click();
}
}
标签:doc click event onkeydown key 回车 document window mit
原文地址:http://www.cnblogs.com/hgj123/p/6346450.html