第一步,在index.html页面head头引入TCaptcha.js

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

第二步,在需要调用的页面初始化,如下图

const captcha = new window.TencentCaptcha("appid", function (res) {})

腾讯防水墙接入文档

打赏作者
微信
支付宝

发表评论

返回顶部