一.前端发送验证码的准备工作
1.点击发送验证码按钮之后,按钮倒计时功能的实现
<!--buttom标签在from表单内部,默认提交时summmit提交(写一个type属性),单独在外面才是一个普通按钮-->
<button class="btn" v-html="htmlValue" type="button" :disabled="disabled"
href="javascript:void(0);" @click="sendMobileCode" id="sendMobileCode">获取</button>
//获取验证码按钮注册事件
sendMobileCode() {
//手机号码必填
if (!this.user.phone) {
alert("手机号码必填!!");
retu