标签:io on 问题 log cti 代码 html ef as
对于开发网站中前台页面遇到的一个问题:event 能在 IE 中实现,但是在 Firefox 中不能实现。
代码1:
$("body").keydown(function () {
if (event.keyCode == 13) {
sendLoginData();
}
})$("body").keydown(function (e) {
e = e || event;
if (e.keyCode == 13) {
sendLoginData();
}
})标签:io on 问题 log cti 代码 html ef as
原文地址:http://blog.csdn.net/colorwaterer/article/details/41828225