<div class="codetitle"> <span><a style="CURSOR: pointer" data="89770" class="copybut" id="copybut89770" onclick="doCopy('code89770')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code89770"> <br><br><br><br><br><br><br><br> /title><br> <script type="text/javascript" src="js/jquery-1.3.2.js"></script><br> <script type="text/javascript"><BR>確保<BR> });<BR> BtnCount = function() {<BR> //化 $('#btnSubmit').attr("disabled", "");<BR> $('#btnSubmit').val("確定");<BR> clearTimeout(timeout); }<BR> else {<BR> count-- ;<BR> $('#btnSubmit').val("已知(" count.toString() ")定");<BR> }<BR> };<BR> </script><br><br><br> <form id="form1" runat="server"> <br> <div> <br> btnSubmit" runat="server" Text="確定" Enabled="false"<br> onclick="btnSubmit_Click"/> ><br><br>setTimeout預設只執行一次,但我們可以用遞歸,是它自己啟動自己。</div> </form> </div>