我希望实现toolbox.tell("something");和toolbox("div").raw();都是可能的,而不必将方法直接解析为模块。 var jQuery = function( selector, context ) {
// The jQueryobject is actually just the init construc
现在,在正确地了解了原型和构造器的工作原理之后,在我开始为我自己的网站制作自己的插件(不是公开访问)之前,我看了一下jQuery来学习一些东西。(function() { return new test.prototype.init(selector); test.prototype = {
init: fun