📜  系统集合通用列表到 javascript 数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:11.811000             🧑  作者: Mango

代码示例1
//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