<head runat="server">
<title></title>
<script type="text/javascript" src="js/jquery
<script type="text/javascript">
var timeout;
var count =
$(function() {
timeout = setTimeout(BtnCount
});
BtnCount = function() {
// 啟動按鈕
if (count ==
$(
$(
clearTimeout(timeout); // 可取消由 setTimeout() 方法設置的 timeout
}
else {
count
$(
setTimeout(BtnCount
}
};
</script>
</head>
<body>
<form id="form
<div>
<asp:Button ID="btnSubmit" runat="server" Text="確定" Enabled="false"
onclick="btnSubmit_Click"/>
</div>
</form>
</body>
setTimeout預設只執行一次
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20387.html