首页 > TAG信息列表 > btnStatus
vue封装手机验证码
// 获取验证码 let endMsRes = new Date().getTime() + 45000; localStorage.setItem(“myEndTime”, JSON.stringify(endMsRes)); this.codeCountDown(endMsRes); // 存储验证码时隔 codeCountDown(endMsRes) { this.BtnStatus = false; this.countDownTime = Math.ceil((endMsRe一个常用的登录按钮展示
<template> <div> <button class="btns" @click="gobtn" :disabled="btnStatus">{{btnContent}}</button> </div> </template> <script> export default { data() { re