[C#] 纯文本查看 复制代码 dt_detail = new DataTable();
dt_detail.Columns.Add(new DataColumn("type", typeof(string)));
dt_detail.Columns.Add(new DataColumn("uid", typeof(string)));
dt_detail.Columns.Add(new DataColumn("douyin", typeof(string)));
dt_detail.Columns.Add(new DataColumn("nickname", typeof(string)));
dt_detail.Columns.Add(new DataColumn("gender", typeof(string)));
dt_detail.Columns.Add(new DataColumn("fans", typeof(string)));
dt_detail.Columns.Add(new DataColumn("follow", typeof(string)));
dt_detail.Columns.Add(new DataColumn("city", typeof(string)));
dt_detail.Columns.Add(new DataColumn("qrcode", typeof(string)));
dt_detail.Columns.Add(new DataColumn("count", typeof(string)));
dt_detail.Columns.Add(new DataColumn("time", typeof(string)));
dt_detail.Columns.Add(new DataColumn("remark", typeof(string)));
[C#] 纯文本查看 复制代码 var dr = dt_detail.NewRow();
dr["type"] = u.type;
dr["uid"] = u.uid;
dr["douyin"] = u.douyin;
dr["nickname"] = u.nickname;
dr["gender"] = u.gender;
dr["fans"] = u.fans;
dr["follow"] = u.follow;
dr["city"] = u.city;
dr["count"] = 1;
dr["time"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
dr["remark"] = u.remark;
dt_detail.Rows.Add(dr); |