日期:2014-05-16 浏览次数:20393 次
<script type="text/javascript">
??? document.onkeypress=function(e)
??? {
??????? var code;?
??????? if? (!e)?
??????? {?
??????????? var e=window.event;?
??????? }?
??????? if(e.keyCode)?
??????? {???
??????????? code=e.keyCode;?
??????? }?
??????? else if(e.which)?
??????? {?
??????????? code?? =?? e.which;?
??????? }
??????? if(code==13)
??????? {
????????? ///这里是调用执行的方法
???????????/// return false;
??????? }
??? }
</script>