jQuery实现笔记1-构造器
function jQuery(){
return new jQuery.prototype.init();
}
jQuery.prototype.init = function(){
console.log("initializing");
}
jQuery.prototype.css = function(){
console.log("css");
}
jQuery.prototype.init.prototype = jQuery.prototype;
var testJ = new jQuery();
testJ.css();