之前业务需求做一个短信验证码登录功能,里面包含了60s倒计时,记录一下。
<form class="form-horizontal" id="login_formTwo">
<div class="tab_css" id="tab2_content">
<div class="col-md-12">
<div class="form-group" style="position: relative;">
<i class="glyphicon glyphicon-user"></i>
<input style="padding-left:36px;" class="form-control required" type="text"
placeholder="手机号" id="phone" name="phone" autofocus="autofocus" maxlength="20"
required />
</div>
<div class="form-group" style="position: relative;">
<i class="glyphicon glyphicon-lock"></i>
<input style="padding-left:36px;" class="form-control required" type="password"
placeholder="请输入验证码" id="code" name="code" maxlength=&#