获取元素最先出现的位置

列表
Both Server and Client
Both Mobile and PC

获取列表中元素最先出现的位置索引,列表中无目标元素则返回-1