我的字符串:分割字符串轉換成數字陣列
>> pp params[:value]
"07016,07023,07027,07033,07036,07060,07062,07063,07065,07066,07076,07081,07083,07088,07090,07092,07201,07202,07203,07204,07205,07206,07208,07901,07922,07974,08812,07061,07091,07207,07902"
這怎麼能成爲獨立的數字像數組:
["07016", "07023", "07033" ... ]
你應該放棄的字符串。寫'params [:value]'與這個問題無關,並且是誤導性的。 – sawa 2011-04-01 17:00:20