<div class="codetitle"> <span><a style="CURSOR: pointer" data="84608" class="copybut" id="copybut84608" onclick="doCopy('code84608')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code84608"> <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>