1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-28 05:11:39 +08:00

修正验证码关闭后元素未定义问题

This commit is contained in:
koogua 2022-03-23 09:44:35 +08:00
parent f7c835b5ca
commit 70c8767789

View File

@ -2,6 +2,7 @@ layui.use(['jquery'], function () {
var $ = layui.jquery; var $ = layui.jquery;
if ($('#captcha-btn').length > 0) {
var captcha = new TencentCaptcha( var captcha = new TencentCaptcha(
$('#captcha-btn')[0], $('#captcha-btn')[0],
$('#captcha-btn').data('app-id'), $('#captcha-btn').data('app-id'),
@ -14,5 +15,6 @@ layui.use(['jquery'], function () {
} }
} }
); );
}
}); });