<div class="codetitle"> <span><a style="CURSOR: pointer" data="88448" class="copybut" id="copybut88448" onclick="doCopy('code88448')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code88448"> <br>$(function () { <br>document.onkeydown = function (event) { <br>var e = event || window.event || arguments.callee.caller.arguments[0]; <br>if (e && e.keyCode == 13) { <br>//to do something; <br>} <br>}; <br>}); <br> </div>