标签:
var $$ = ajQuery = function(selector) { return new ajQuery.fn.init(selector); } ajQuery.fn = ajQuery.prototype = { name: ‘aaron‘, init: function(selector) { this.selector = selector; return this; }, constructor: ajQuery } //2个构造器关联的关键 ajQuery.fn.init.prototype = ajQuery.fn ajQuery.fn.say = function() { $("#aaron").html(this.name); } $$().say()
标签:
原文地址:http://www.cnblogs.com/oceanden/p/4326631.html