<input type="button" id="btn" value="开始"/>
<input type="button" id="btn1" value="取消" />
<script>
var count=60; //定义60秒时间
var setInterval=setInterval(function(){
var btn=document.getElementById("btn");
if(count>0){
count--;
btn.disabled=true;
btn.value=count+"
<input type="button" id="btn1" value="取消" />
<script>
var count=60; //定义60秒时间
var setInterval=setInterval(function(){
var btn=document.getElementById("btn");
if(count>0){
count--;
btn.disabled=true;
btn.value=count+"