📅  最后修改于: 2022-03-11 15:04:17.896000             🧑  作者: Mango
//Controller content
string[] array = {"Value1", "Value2", "Value3", "Value4"};
ViewData["Array"] = array;
//OR
List array = new List();
array.Add("value1");
ViewData["Array"] = array.ToArray();
//View content