$ .extend不是函数 [英] $.extend is not a function
问题描述
我正在尝试整合 svg编辑-编辑器, jQuery,进入Magento.问题是Magento使用Prototype,因此我正在使用jQuery.noConflict();
方法.一切正常,直到我通过函数调用编辑器,然后Firebug引发以下错误:
I'm trying to integrate the svg edit - editor, which is using jQuery, into Magento. The problem is that Magento uses Prototype, and therefore I'm using the jQuery.noConflict();
method. Everything is fine until if I call the editor via function then Firebug throws the following errors:
$.extend不是函数
if(config) {
$.extend(curConfig, config);
}
$.isArray不是函数
} else if($.isArray(key)) {
错误发生在行 59 和 121 在 svgcanvas.js 中.我希望在使用jquery和原型方面有更多经验的人可以帮助我解决这个问题.
The error occurs at line 59 and 121 in svgcanvas.js. I hope someone with more experience in using jquery and prototype can help me with this problem.
推荐答案
尝试:jQuery.extend(curConfig, config);
这篇关于$ .extend不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!