//后台驱动器验证码校验
var checkCode = _webParams.getParamValues().get("checkCode");
if (checkCode == "" || checkCode == null) {
return _webTools.getJsonMessage(false, 2, null, null, "验证码不能为空:" + checkCode);
}
//获取缓存验证码,校验
var checkCaptchaCode = _webTools.validateCaptcha(_webParams, checkCode);
if(checkCaptchaCode == false){
return _webTools.getJsonMessage(false, 3, null, null, "验证码不正确:" + checkCode);
}
<img id="randomImg2" src="/captcha.jpg"/>