var
// Map over jQuery in case of overwrite
_jQuery = window.jQuery, //把原jQuery对象保存到_jQuery
// Map over the $ in case of overwrite
_$ = window.$; //把原$对象保存到_$
jQuery.noConflict = function( deep ) {
if ( window.$ === jQuery ) {
window.$ = _$; //如果咱们代码中的JQuery已经鸠占鹊巢占有了window.$,就把他还原回去
}
if ( deep && window.jQuery === jQuery ) {
window.jQuery = _jQuery;//如果他要求的更多(指deep),咱们把window.jQuery也还原回去
}
return jQuery;
};