mirror of
https://github.com/dromara/tianai-captcha.git
synced 2026-05-07 06:04:34 +08:00
5eb258215b
tianai-captcha-springboot-starter tianai-captcha-web-sdk tianai-captcha-solon-plugin 整合到一块
29 lines
642 B
HTML
29 lines
642 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<!-- 验证码存放的div块 -->
|
|
<div id="captcha-box"></div>
|
|
|
|
<script>
|
|
$(function () {
|
|
// 样式配置
|
|
const config = {
|
|
requestCaptchaDataUrl: "http://localhost:8080/gen",
|
|
validCaptchaUrl: "http://localhost:8080/check",
|
|
bindEl: "#captcha-box"
|
|
}
|
|
new TAC(config).init();
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|