//已经把最外面的$ 保存到了内部。var _$ = window.$, _jQuery = window.jQuery, ... noConflict: function( deep ) { window.$ = _$; //把最外面的$重新赋值 if ( deep ) { window.jQuery = _jQuery; } return jQuery; }, window.jQuery = window.$ = jQuery;