//test singleton instance 单体模式实例化;
//test singleton instance
function Test(){
this.a = 5;
}
$.extend(Test.prototype, {
error:function(){
return this.a;
}
});
$.obj = new Test();
alert($.obj['error'].apply($.obj, []));
//alert($.obj.error());
loading