.Net
System.Web
System.Web.HttpCookie HttpResponse
后端保存Cookie
HttpCookie ucookie = new HttpCookie("user_name");ucookie.Values.Add("userid", strUserID);或者ucookie.Value = uname;ucookie.Expires = DateTime.Now.AddHours(8);Response.Cookies.Add(ucookie);
System.Web.Script.Serialization
context.Response.Write(new JavaScriptSerializer().Serialize(m));
