首页 > TAG信息列表 > maomin
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