标签:ons linq lin json http cookies vat tostring userinfo
HttpCookie userinfoCookie = new HttpCookie("userinfo");
JObject o = new JObject();//JObject是Newtonsoft.Json.Linq中的对象
o["userid"] = userDB.UserID.ToString();
o["nickname"] = userDB.NickName;
o["avatar"] = userDB.ImageUrl;
userinfoCookie.Value = o.ToString();
Response.Cookies.Add(userinfoCookie);
标签:ons linq lin json http cookies vat tostring userinfo
原文地址:https://www.cnblogs.com/bwdblogs/p/11451729.html