Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript YUI 3.18中的YAHOO.extend和YAHOO.util.Element_Javascript_Upgrade_Yui - Fatal编程技术网

Javascript YUI 3.18中的YAHOO.extend和YAHOO.util.Element

Javascript YUI 3.18中的YAHOO.extend和YAHOO.util.Element,javascript,upgrade,yui,Javascript,Upgrade,Yui,这里有一些代码是用YUI 2.9编写的,需要升级到YUI 3.18。有人能帮我吗 var MyEntryField = function (parentWindow, entryElem) { this.parentWindow = parentWindow; this.id = entryElem.id; this.element = $(entryElem); this.orgbgColor = null; M

这里有一些代码是用YUI 2.9编写的,需要升级到YUI 3.18。有人能帮我吗

var MyEntryField = function (parentWindow, entryElem) {
        this.parentWindow = parentWindow;
        this.id = entryElem.id;
        this.element = $(entryElem);
        this.orgbgColor = null;

        MyEntryField.superclass.constructor.call(this, entryElem, {
            visibility : entryElem.style.visibility
        });
        parentWindow.addChildElement(this.id, this);
    };

    YAHOO.extend(MyEntryField, YAHOO.util.Element, {
        init : function (el, userConfig) {
            el.style.visibility = userConfig.visibility;
            MyEntryField.superclass.init.call(this, el, userConfig);
        }
    });
如何将这段代码从YUI2.9更改为YUI3.18