JS命名空间是啥
作者:互联网
var c=c||{};
c.person=function(name){
this.name=name;
}
var b=new c.person(“maomin”)
c.person.prototype.getname=function(){
console.log(this.name);//maomin
}
b.getname();
更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120127094
标签:function,name,person,getname,var,空间,命名,JS,maomin 来源: https://www.cnblogs.com/wangchuanxinshi/p/16522162.html