短信验证码定时器 /** * 定时循环 * @param i 循环次数 */function runCodeTime(i){var codeButton = $("#codeButton");if(i90){i+=1;codeButton.html((90-i)+"秒重发");setTimeout("runCodeTime("+i+")", 1000);codeButton.attr("disable
/** * 定时循环 * @param i 循环次数 */ function runCodeTime(i){ var codeButton = $("#codeButton"); if(i<90){ i+=1; codeButton.html((90-i)+"秒重发"); setTimeout("runCodeTime("+i+")", 1000); codeButton.attr("disabled",true); }else{ codeButton.html("重新获取"); codeButton.attr("disabled",false); } }