<div class="f_l btnstyle01" id="divphone"> <span> <a οnclick="send(2)"href="#" >点击获取验证码</a></span></div>
function send(msg){
//自己的逻辑
f_timeout();
}
function f_timeout(){
$('#divphone').html(' <lable id="timeb2"> 60 </lable>秒后重新获取 ');
timer = self.setInterval(addsec,1000);
}
function addsec(){
var t = $('#timeb2').html();
if(t > 0){
$('#timeb2').html(t-1);
}else{
window.clearInterval(timer);
$('#divphone').html("<span> <a οnclick='send(2)'href='#' >点击获取验证码</a></span>");
}
}