jquery初始化结构
(function(window,undefined){
window.jQuery = window.$ = jQuery;
var jQuery = function(selector,context){
return new jQuery.fn.init(selector,context);
}
jQuery.fn = jQuery.prototype = {
init:function(selector,context,rootjQuery){
return this;
},
map:function(callback){
},
eq:function(callback){
},
first:function(callback){
},
last:function(callback){
},
toArray:function(){
},
get:function(){
},
pushStack:function(){
},
each:function(){
},
ready:function(){
},
slice:function(){
},
end:function(){
}
}
jQuery.fn.init.prototype = jQuery.fn;
jQuery.extend = jQuery.fn.extend = function(){
}
})(window)