jQuery 1.0.2

2019-06-03 18:50:05于海丽


    filter: [ "eq", "lt", "gt", "contains" ],

    attr: {

        val: "value",

        html: "innerHTML",

        id: null,

        title: null,

        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(){