gistfile1.txt // 手机倒计时验证码$(function(){ $("#btn").click(function(){ if($('#phone').val() == null || $('#phone').val() =="" || isPhoneNo($.trim($('#phone').val())) == false){ $("#btn").attr("disabled","disabled"); }else{ $("#b
// 手机倒计时验证码 $(function(){ $("#btn").click(function(){ if($('#phone').val() == null || $('#phone').val() =="" || isPhoneNo($.trim($('#phone').val())) == false){ $("#btn").attr("disabled","disabled"); }else{ $("#btn").removeAttr("disabled"); var codename = $(".codename").val(); $.ajax({ type: 'POST', url: 'my.php?mid=10&action=post_code', dataType: 'json', data:{mobile:codename}, success: function(data){ console.log(data); }, error: function(){ console.log("error"); } }); timerInt(); } }) });