1、如果不需要使用索引值,直接写成item in names。其中item是数组项,names是数组。
3、如果需要拿到元素在数组中的索引值,需要老揉孟阼写成(item,index) in names。其中index就是元素的索引值。