Object doesn't support property or method 'validate' 错误
来源:互联网 发布:stc15f104w数据手册 编辑:程序博客网 时间:2024/06/07 02:24
1. 用了jquery.validate.min.js校验前台的数据,在浏览器中提交表单没有效果,F12进入控制台
1) MicrosoftEdge浏览器报错:Object doesn't support property or method 'validate'
2) 360浏览器中报错:Uncaught TypeError: $(...).validate is not a function
2. 检查代码发现动态的引入了一个jsp文件:
<jsp:include page="/header.jsp"></jsp:include>
3. 检查header.jsp发现:
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script>
错误原因,删除掉就好了
4. 当前界面:
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.11.3.min.js"></script>
结论:校验页面与header.jsp两个jquery文件冲突
阅读全文
0 0
- Object doesn't support property or method 'validate' 错误
- object doesn’t support this property or method
- Message: Object doesn't support this property or method
- Object doesn't support property or method 'attachEvent'
- Object doesn't support property or method 'die'
- 使用juery时出现Object doesn't support this property or method的问题。
- PECMS上传图片时提示:Object doesn't support this property or method
- js报错: Object doesn't support this property or method
- jQuery on IE8, error: Object doesn't support this property or method
- XYTipsWindow、jquery-1.4.4.min.js和Object doesn't support this property or method 解决
- ie下Extjs报错el.owner.createDocument.createRange Object doesn't support this property or method解决办法
- jquery中使用submit()提交的时候object doesn't support this property or method 的解决办法
- SP13使用JS读取social feed 时的报错 SCRIPT438: Object doesn't support property or method 'get_context
- 'range' object doesn't support item deletion
- 'range' object doesn't support item deletion
- python3中报错:TypeError: 'range' object doesn't support item deletion
- python3中报错:TypeError: 'range' object doesn't support item deletion
- Material doesn't have a float or range property '_WaveScale'
- Byte[]和byte[]的转换
- HTTP、HTTPS
- bootstrap基础之二
- 权限
- 如何使用Vue中的slot
- Object doesn't support property or method 'validate' 错误
- 100 零崎的朋友很多Ⅰ
- 验证码(jsp的形式)
- Oracle的instr函数和substr函数
- jquery中的for循环与each循环
- 使用iPhoneX模拟器适配时如何改动最少的代码使不支持模拟器的.a文件相关的功能不报错
- 圆形头像
- js 设备检测(判断是移动端还是PC端)
- regmap机制