var tabs=new Ext.TabPanel({
renderTo:document.body,
height:100
});
tabs.add({
title:'标题1',
html:'内容1'
});
tabs.add({
id:Ext.id(),
title:'标题2',
html:'内容2',
closable:true
});
上面的代码没有错误,但是Ext.的后面弹出的提示没有TabPanel,而且activate()函数也没有了,为什么。