【发布时间】:2013-05-23 11:23:18
【问题描述】:
我有parent.jsp,其中包含prototype.js。 parent.jsp 包含一个链接,它从child.jsp 加载内容,但child.jsp 包含jquery.js。现在原型与 jquery 冲突,我在 Internet Explorer 中遇到很多错误,在 mozilla firefox 中遇到一个错误。
大多数 Internet Explorer 问题都与 $ 符号和 document.body.appendChild() 有关。
Mozilla firefox 出现此错误:
typeerror value does not implement interface node 在这行原型中:
var query= document.evaluate(expression, $(parentElement) || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
谁能建议如何解决这个问题?我用谷歌搜索了很多,给定了 jquery 的noConflict,仍然没有任何工作。
【问题讨论】:
标签: javascript jquery prototypejs conflict