<a href="javascript:;" onclick="sendMobileMsg();" class="btn btn-orange">
<span id="sendMobileBtn"></span>发送验证码
</a>
function sendMobileMsg(){
daojishi(60);
}
| function daojishi(S){ | |
| if (S>0){ | |
| var S = S-1; | |
| $("#sendMobileBtn").parent().html("<span id='sendMobileBtn'></span>秒后重发").removeAttr("onclick").attr("disabled","disabled"); | |
| $("#sendMobileBtn").html(S); | |
| setTimeout("daojishi("+S+")",1000); | |
| return; | |
| } else { | |
| $("#sendMobileBtn").parent().html("<span id='sendMobileBtn'></span>获取验证码").attr("onclick",'sendMobileMsg()').removeAttr("disabled"); | |
| } | |
| } |


6695

被折叠的 条评论
为什么被折叠?



