组件演示
实时演示
下方组件由 ShowBot 客户端脚本渲染。输入你的 API 密钥绑定账户,或留空匿名体验。
嵌入代码
在页面 head 中引入脚本,在需要验证的位置放置 div。
<script src="https://bot.xcmdy.top/static/showbot.js"></script>
<div class="showbot-widget" data-sitekey="YOUR_API_KEY"></div>
<script>
ShowBot.render('YOUR_API_KEY', {
container: '.showbot-widget',
onVerified: function(token) {
console.log('验证通过,token:', token);
}
});
</script>