javascript基礎(chǔ)入門 tabbedPane選項(xiàng)卡如何獲取子元素個(gè)數(shù)?
tabbedPane選項(xiàng)卡如何獲取子元素個(gè)數(shù)?Getselectedindex explicitGetSelectedIndex()返回當(dāng)前所選選項(xiàng)卡窗格的索引。如果當(dāng)前未選擇任何選項(xiàng)卡,則返回-1。
tabbedPane選項(xiàng)卡如何獲取子元素個(gè)數(shù)?
Getselectedindex explicitGetSelectedIndex()返回當(dāng)前所選選項(xiàng)卡窗格的索引。如果當(dāng)前未選擇任何選項(xiàng)卡,則返回-1。Return:所選頁簽的索引。另請(qǐng)參見:set selected index(int)gettitleatpublic string gettitleat(int index)返回索引位置處的選項(xiàng)卡標(biāo)題。參數(shù):index-被查詢項(xiàng)的索引return:索引位置的標(biāo)題throw:indexoutofboundsexception-如果索引超出范圍(index<0 | index>=tabcount),請(qǐng)參閱:settitleat(int,java.lang.String文件)