javascript基础入门 tabbedPane选项卡如何获取子元素个数?

tabbedPane选项卡如何获取子元素个数?Getselectedindex explicitGetSelectedIndex()返回当前所选选项卡窗格的索引。如果当前未选择任何选项卡,则返回-1。

tabbedPane选项卡如何获取子元素个数?

Getselectedindex explicitGetSelectedIndex()返回当前所选选项卡窗格的索引。如果当前未选择任何选项卡,则返回-1。Return:所选页签的索引。另请参见:set selected index(int)gettitleatpublic string gettitleat(int index)返回索引位置处的选项卡标题。参数:index-被查询项的索引return:索引位置的标题throw:indexoutofboundsexception-如果索引超出范围(index<0 | index>=tabcount),请参阅:settitleat(int,java.lang.String文件)