按enter键window.onkeydown没反应. event.onkeypress=function(e){if(e.keyCode==13){if(val==''){alert('iamapig');}else{alert('iamadog');}}};... event.onkeypress ...
確定! 回上一頁