jquery插件-zTree 使用出现- NotSupportedError: DOM Exception 9 错误
2013-08-14 19:40
691 查看
NotSupportedError: DOM Exception 9
Uncaught TypeError: Object function (j,s){return new b.fn.init(j,s)} has no method 'isXMLDoc'
今天帮朋友定位一个问题,使用zTree来展示Tree数据,使用的jquery1.4.4 + zTree ,但是这个项目中又掺杂了些Extjs3.1的代码,可以使用chrome Sniffer插件工具查看到 导致在使用的时候出现JS冲突错误
NotSupportedError: DOM Exception 9 。
1、问题出现有俩个原因,朋友把JS加载部分的代码写在了与JS代码放在一起了,建议外部引入的js,可以使用单独的外部链接方式
2、提高jquery版本,为1.6版本以上,(没有测试1.5了),可以解决这个问题,还有就是可以干掉Extjs,当然这也不太现实,呵呵。
1.6以上解决了jquery和Extjs混用的问题
最后的结果
Uncaught TypeError: Object function (j,s){return new b.fn.init(j,s)} has no method 'isXMLDoc'
今天帮朋友定位一个问题,使用zTree来展示Tree数据,使用的jquery1.4.4 + zTree ,但是这个项目中又掺杂了些Extjs3.1的代码,可以使用chrome Sniffer插件工具查看到 导致在使用的时候出现JS冲突错误
NotSupportedError: DOM Exception 9 。
1、问题出现有俩个原因,朋友把JS加载部分的代码写在了与JS代码放在一起了,建议外部引入的js,可以使用单独的外部链接方式
<script type="text/javascript"> $import('<c:out value='${pageContext.request.contextPath}'/>/style/demo.css', '<c:out value='${pageContext.request.contextPath}'/>/style/zTreeStyle/zTreeStyle.css', '<c:out value='${pageContext.request.contextPath}'/>/script/jquery-1.4.4.min.js', '<c:out value='${pageContext.request.contextPath}'/>/script/jquery.ztree.core-3.5.min.js'); </script>
2、提高jquery版本,为1.6版本以上,(没有测试1.5了),可以解决这个问题,还有就是可以干掉Extjs,当然这也不太现实,呵呵。
1.6以上解决了jquery和Extjs混用的问题
最后的结果
相关文章推荐
- jquery插件-zTree 使用出现- NotSupportedError: DOM Exception 9 错误
- 使用jquery插件autocomplete时候出现typeerror:this.source is not a function即与jquery的autocomplete冲突
- 关于使用JQuery时 定义$(funtion(){});时出现Uncaught ReferenceError: $ is not defined的错误
- 如果使用xutils出现了ExceptionInInitializerError这个错误
- servlet中使用service()方法出现错误:HTTP method POST is not supported by this URL
- Maven使用tomcat7-maven-plugin插件run时出现错误: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component
- TypeError: url.indexOf is not a function ,使用jquery load()出现错误
- python3中,socket使用send函数时出现的错误:TypeError: a bytes-like object is required, not 'str'
- JQuery上传插件Uploadify出现"HTTP Error"错误的解决办法
- 使用myeclipse启动tomcat时出现这种错误“Could not publish to the server. java.lang.NullPointerException”
- DBCP:使用DBCP连接池出现NoClassDefFoundError和ClassNotFoundException错误
- 使用highcharts插件时图表无法显示且jQuery报错:Uncaught ReferenceError: $ is not defined
- 关于升级ADT22后无法使用jar包、bundle库,出现java.lang.ClassNotFoundException错误的解决
- 如果使用xutils出现了ExceptionInInitializerError这个错误
- 在使用updatepanel 时,上传到服务器出现如下错误: Sys.WebForms.PageRequestManagerServerErrorException: 在服务器上处理请求时出现未知错误。服务器返回的状态码为: 500
- 在使用jQuery2.1.0和bootstrap2.3.2出现“TypeError: $.browser is undefined”错误的解决方法
- 使用mysql数据库的关键字作为表的属性名,同时使用hibernate时出现异常错误:MySQLSyntaxErrorException
- 使用Axis插件来从WSDL文件生成代码时"An error occurred while completing process -java.lang.reflect.InvocationTargetException"的错误
- python使用selenium获取元素出现错误:"errorMessage":"Compoud class names not permitted"
- ajax使用向Spring MVC发送JSON数据出现 org.springframework.web.HttpMediaTypeNotSupportedException: Content type