NotSupportedError: DOM Exception 9
Uncaught TypeError: Object function (j, s) {return new B. fn. init (j, s)} has no method 'isxmldoc'
Today, I helped my friend locate a problem. I used zTree to display Tree data and used jquery1.4.4 + zTree. However, this project is mixed with some Extjs3.1 code, you can use the chrome Sniffer plug-in tool to view the JS conflict errors during use.
NotSupportedError: DOM Exception 9.
1. There are two reasons for the problem. A friend wrote the code loaded by JS together with the JS Code. We recommend that you use a separate external link for js introduced externally.
<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> <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. If you upgrade jquery to version 1.6 or later (no tests are available), you can solve this problem. In addition, Extjs can be eliminated. Of course, this is not realistic.
Over 1.6 solved the problem of mixed use of jquery and Extjs