<div class="codetitle"> <span><a style="CURSOR: pointer" data="76281" class="copybut" id="copybut76281" onclick="doCopy('code76281')"><u>複製代碼</u></a></span> 代碼如下:</div> <div class="codebody" id="code76281"> <br>//回車觸發某按鈕的點選事件<br> <br><div class="search_but fr" onclick="searchByKey()" fill></div> <br><br><div class="codetitle">複製程式碼<span><a style="CURSOR: pointer" data="67995" class="copybut" id="copybut67995" onclick="doCopy('code67995')"><u> 代碼如下:</u> >//搜尋回車實作點選效果//相容IE 火狐Google</a>function globelQuery(e) { </span>if (!e) </div>e = window.event; <div class="codebody" id="code67995">if ((e. keyCode || e.which) == 13) { <br>$("#globelSearch").click(); <br>} <br>} <br><br> </div> </div>