develog

[jquery] source code 본문

카테고리 없음

[jquery] source code

냐옴 2022. 2. 22. 23:06

 

https://code.jquery.com/jquery-3.6.0.js

// jQuery
jQuery = function( selector, context ) {
    // The jQuery object is actually just the init constructor 'enhanced'
    // Need init if jQuery is called (just allow error to be thrown if not included)
    return new jQuery.fn.init( selector, context );
};

// $
if ( typeof noGlobal === "undefined" ) {
    window.jQuery = window.$ = jQuery;
}

// $.fn
jQuery.fn = jQuery.prototype = {

}

// $.fn.init
init = jQuery.fn.init = function( selector, context, root ) {
    
}

// $.fn.ready
jQuery.fn.ready = function( fn ) {

}
Comments