Skip to content

AddItemWithValue

所属类:


描述

向下拉框添加一个带value值的选项。同时设置选项的显示文本和对应的值


参数

名称
类型
默认
描述
itemstring选项的显示文本(item的key值)
valuestring选项对应的值(item的value值)

返回值

返回类型
概要
int新添加选项的索引,从0开始计数