2010-08-14 47 views

回答

64

array.include?('two')返回truefalse

6

你可以使用:如果存在其他将返回nil

array.index('two') 

将返回对象的索引。