利用原生态的(System.Web.Extensions)JavaScriptSerializer将mvc 前台提交到controller序列化复杂对象
摘要:
主要代码如下: public JsonResult Test() { string s = Request.Form.ToString(); JavaScriptSerializer jss = new JavaScriptSerializer(); var sth = jss.Deserialize(HttpUtility.UrlDecode(s)); //var lst = jss.Deserialize>>(HttpUtility.UrlDecode(s)); ... 阅读全文
posted @ 2013-10-29 16:48 PEIYANGXINQU 阅读(243) 评论(0) 推荐(0) 编辑