$.extend is not a function

后端 未结 4 1583
北荒
北荒 2021-01-20 12:23

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.no

4条回答
  •  太阳男子
    2021-01-20 12:44

    try to put your function attr into

    (function( $ ){
    
    
    })( jQuery );
    

    so it will look like

    (function( $ ){
    jQuery.fn.attr = function(key, value) {
        var len = this.length;
        if(!len) return this;
        for(var i=0; i

提交回复
热议问题