请看下面代码就明白了
var $ = jquery = function(){ this.AA = 1; return jquery.fn.init(); }; jquery.fn = jquery.prototype = { init: function(){ this.AA = 2; return this; }, AA: 3, version: "1.32" }; var abc = new $(); console.log("jquery:"+ abc); console.log("jquery:"+ $().version);