当前位置: 代码迷 >> JavaScript >> 请问个JS有关问题
  详细解决方案

请问个JS有关问题

热度:75   发布时间:2012-11-07 09:56:10.0
请教个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里边也没有这些属性啊

------解决方案--------------------
这是给类的属性赋值,类里面没有这些变量,也可以给他们赋值
  相关解决方案