js中的写法:
var list = []; var o = {}; o.id = ‘111‘; o.name = ‘222‘; list.push(o);
c#中的写法:
var aList = new List<dynamic>(); dynamic o = new System.Dynamic.ExpandoObject(); o.id = "111"; o.name = "222"; aList.Add(o);
时间: 2024-10-31 11:05:32
js中的写法:
var list = []; var o = {}; o.id = ‘111‘; o.name = ‘222‘; list.push(o);
c#中的写法:
var aList = new List<dynamic>(); dynamic o = new System.Dynamic.ExpandoObject(); o.id = "111"; o.name = "222"; aList.Add(o);