js菜鸟笔记
window.onload=function () {
window.document.addEventListener("keydown",function (event) {
if(event.keyCode == 13){
alert('你按下了Enter');
}
})
}
window.onload=function () {
window.document.addEventListener("keydown",function (event) {
if(event.keyCode == 13){
alert('你按下了Enter');
}
})
}