简简单单
<javascript>
var time = 60;
function send(_this){
var phone = "";
// 发送短信业务代码--略
if (time == 0) {
_this.removeAttribute("disabed");
_this.value = "发送短信";
time = 60;
time--;
return;
}else{
_this.setAttribute('disabed',true);
_this.value = "重新发送(" + time + "s)";
time--;
}
// 定时器
setTimeout(function(){
send(_this);
},1000);
}
</javascript>