jQuery 1.0.2

2020-05-23 06:10:44易采站长站整理

        name: null,
        href: null,
        src: null,
        rel: null
    },
    axis: {
        parent: “a.parentNode”,
        ancestors: jQuery.parents,
        parents: jQuery.parents,
        next: “jQuery.sibling(a).next”,
        prev: “jQuery.sibling(a).prev”,
        siblings: “jQuery.sibling(a, null, true)”,
        children: “jQuery.sibling(a.firstChild)”
    },
    each: {
        removeAttr: function( key ) {
            this.removeAttribute( key );
        },
        show: function(){
            this.style.display = this.oldblock ? this.oldblock : “”;
            if ( jQuery.css(this,”display”) == “none” )
                this.style.display = “block”;
        },
        hide: function(){
            this.oldblock = this.oldblock || jQuery.css(this,”display”);
            if ( this.oldblock == “none” )
                this.oldblock = “block”;
            this.style.display = “none”;
        },
        toggle: function(){
            jQuery(this)[ jQuery(this).is(“:hidden”) ? “show” : “hide” ].apply( jQuery(this), arguments );