<div class="codetitle"> <span><a style="CURSOR: pointer" data="52160" class="copybut" id="copybut52160" onclick="doCopy('code52160')"><u>复主代码</u></a></span> 代码如下:</div> <div class="codebody" id="code52160"> <br><head> <br><title>테스트 카운트다운 버튼</title> <br><script src="http://demo.jb51.net/jslib/jquery/jquery-1.5.1.min.js" type="text/javascript"></script> <br><script type="text/javascript"> <br>$(function () { <br>$('#btn').click(function () { <br>var count = 3; <br>var countdown = setInterval(CountDown, 1000); <br> <br>function CountDown() { <br>$("#btn").attr("disabled", true) <br>$("#btn").val("잠깐만 " 카운트 "초!" ); <br>if (count == 0) { <br>$("#btn").val("Submit").removeAttr("disabled"); <br>개수--; <br>} <br>}) <br><br>}); <br></script> <br></head> <br><본문> <br><input type="button" id="btn" value="Submit" /> <br></body> <br><br> <br>有兴趣您可以自己实现一下。</div>