美文网首页
腾讯web验证码功能

腾讯web验证码功能

作者: huanghaodong | 来源:发表于2019-09-30 09:47 被阅读0次

    step1 申请appid

    https://007.qq.com/captcha/#/

    step2 引用

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

    step3 调用

    new TencentCaptcha('腾讯验证码APPID', (rsp)=>{
      if(rsp.ret===0){
      //我的验证码通过后的逻辑写在此
      }else{
      this.$vux.toast.show({
       text: '请完成滑块验证',
       type: 'warn'
      })
      }
     },{});
    

    相关文章

      网友评论

          本文标题:腾讯web验证码功能

          本文链接:https://www.haomeiwen.com/subject/adwsuctx.html