jQuery 1.0.2

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

        jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); };

        // Finally, handle events that only fire once
        jQuery.fn["one"+o] = function(f){
            // Attach the event listener
            return this.each(function(){

                var count = 0;

                // Add the event
                jQuery.event.add( this, o, function(e){
                    // If this function has already been executed, stop
                    if ( count++ ) return;

                    // And execute the bound function
                    return f.apply(this, [e]);
                });
            });
        };

    };

    // If Mozilla is used
    if ( jQuery.browser.mozilla || jQuery.browser.opera ) {
        // Use the handy event callback
        document.addEventListener( "DOMContentLoaded", jQuery.ready, false );

    // If IE is used, use the excellent hack by Matthias Miller
    // http://www.outofhanwell.com/blog/index.php?title=the_window_onload_problem_revisited
    } else if ( jQuery.browser.msie ) {

        // Only works if you document.write() it
        document.write("<scr" + "ipt id=__ie_init defer=true " +