请教个JS问题
function TabControl(name,active)
{
this.name = name;
this.tabName = new Array();
this.tabDiv = new Array();
this.contentDiv = new Array();
this.activeTab = active;
return this;
}
不太明白
this.name = name;
this.tabName = new Array();
this.tabDiv = new Array();
this.contentDiv = new Array();
this.activeTab = active;
到底是什么意思?
TabControl里边也没有这些属性啊
------解决方案--------------------
这是给类的属性赋值,类里面没有这些变量,也可以给他们赋值