首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

请问个JS有关问题

2012-11-07 
请教个JS问题function TabControl(name,active){this.name namethis.tabName new Array()this.tabDi

请教个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里边也没有这些属性啊

[解决办法]
这是给类的属性赋值,类里面没有这些变量,也可以给他们赋值

热点排行