jQuery jQuery 验证错误
jQuery Validate error for jQuery Validate
我正在使用 jquery 使用此脚本进行验证:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/jquery.validate.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.12.0/additional-methods.js"></script>
我的表单在 Chrome/Firefox 中运行良好,但在 IE 11 中它忽略了 jquery 验证。
使用调试器中断异常,出现错误:
楼主的评论:
i do have for IE 'display intranet sites in compatibility view' check because we have to for us, and <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "w3.org/TR/html4/loose.dtd">
使用有效的 HTML,不要强制站点进入 "Compatibility Mode"。兼容模式仅设计为后备,以帮助旧代码在新版本的 Explorer 中工作。
我正在使用 jquery 使用此脚本进行验证:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/jquery.validate.js"></script>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.12.0/additional-methods.js"></script>
我的表单在 Chrome/Firefox 中运行良好,但在 IE 11 中它忽略了 jquery 验证。
使用调试器中断异常,出现错误:
楼主的评论:
i do have for IE 'display intranet sites in compatibility view' check because we have to for us, and
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "w3.org/TR/html4/loose.dtd">
使用有效的 HTML,不要强制站点进入 "Compatibility Mode"。兼容模式仅设计为后备,以帮助旧代码在新版本的 Explorer 中工作。