vue TencentCaptcha腾讯验证码


首先在index.html引入相应js:

<script src="https://ssl.captcha.qq.com/TCaptcha.js"></script>

然后在对应的页面创建对象:

 mounted: function () {
      this.captcha = new window.TencentCaptcha('xxxxx', function (res) {
        if (res.ret === 0) {
            //执行逻辑
        }
      })
    },  

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM