天天看點

flex之selectedItem與selectedIndex的差別

1. selectedIndex——指的是dropdownlist中選項的索引,為int,從0開始,可讀可寫 

2. selectedItem——指的是選中的dropdownlist中選項,為ListItem,隻讀不寫 

3. selectedValue——指的是選中的dropdownlist中選項的值,為string,隻讀不寫 

4. selectedItem.Text——指的是選中的dropdownlist中選項的文本内容,與selectedItems的值一樣為string,可讀可寫 

5. selectedItem.value——指的是選中的dropdownlist中選項的值,與selectedValue的值一樣,為string,可讀可寫