在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
//测试对象集合序列化 public void jsonTest() { List<moduleEntity> list = new List<moduleEntity>(); for (int i = 1; i < 5;i++) { moduleEntity entity = new moduleEntity(); entity.id = i + "0"; entity.sortNumber = i; entity.moduleFlag = "flag"+i; entity.moduleName = "name"+i; entity.moduleUrl = "url" + i; entity.moduleImage = "image" + i; entity.createDatetime = DateTime.Now; list.Add(entity); } JavaScriptSerializer jss = new JavaScriptSerializer(); string jsonString = jss.Serialize(list); this.Response.Write(list); }
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论