Skip to content

GetIndexByItem

所属类:


描述

通过item的key值查找对应的索引。根据item的key值查找其在列表中的索引位置


参数

名称
类型
默认
描述
itemstringitem的key值

返回值

返回类型
概要
int找到的选项索引,从0开始计数;如果未找到则返回-1