Asp.Net MVC
PatyTime
知识分享
展开
-
JsonResult的使用
public JsonResult GetPersonInfo(){var person = new{Name = "lisi",Age = 22,Sex = "男"};return Json(person);}或者public JsonResult GetPersonInfo(){return Json (new{Name = "lis原创 2014-06-04 09:50:35 · 1985 阅读 · 0 评论 -
webApi
WebApi的使用 // // GET: /Default1/ public ActionResult Index() { //客户端的创建和初始化 HttpClient client = new HttpClient();原创 2014-12-06 16:04:03 · 365 阅读 · 0 评论