基于vue实现图片验证码倒计时60s功能

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

基于vue实现图片验证码倒计时60s功能

涼涼_570e   2020-05-17 我要评论

1.基于VUE实现图片验证码

html:

   <div class="formItem pr">
       <img src="../../image/icon2.png" alt="">
       <input type="text" placeholder="请输入验证码">
       <img :src="IdentifyingCode" alt="图文验证码" class="IdentifyingCode" @click="updateIdentifyingCode(true)">
     </div>

js:

2.vue实现验证码倒计时60s

html:

 <div class="formItem">
      <img src="../../image/icon2.png" alt="">
      <input type="text" placeholder="请输入验证码">
      <button class="button" type="button" name="button" @click="sendCode()" v-show="show">获取验证码</button>
      <button class="button codebtn" type="button" name="button" v-show="!show">{{sum}}s</button>
   </div>

js:

效果图:

总结

以上所述是小编给大家介绍的基于vue实现图片验证码倒计时60s功能,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
如果你觉得本文对你有帮助,欢迎转载,烦请注明出处,谢谢!

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们