通常,我们这样发送请求是可以拿到验证码的图片的
KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲randCode').attr…{pageContext.request.contextPath}/login/getCode’);
但是操作并不是如此
因为这个请求在之前已经出现了,所以不会在重新发送请求
我们需要这样写
KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲randCode').attr…{pageContext.request.contextPath}/login/getCode?time=’+new Date().getTime());
关于验证码刷新的坑
最新推荐文章于 2021-07-01 08:50:13 发布