// jQuery的构造函数; var jQuery = function( a, c ) { // $(document).ready()的简写形式,只有在$(function(){...})下才会执行; if ( a && typeof a == "function" && jQuery.fn.ready ) return jQuery(document).ready(a); // 确保参数a非空,默认值为document; a = a || jQuery.context || document;