public class Person { public string Name{get;set;} public string Phone{get;set;} } view层 @model Model.Person @{ ViewBag.Title = "Add";} @using (Html.BeginForm("doAdd","person",FormMethod.Post) { } 1.通过request.form获取表单数据 pu
$.fn.GetPostData = function () { var data = {}; var k = false; $(this).find(".datacontrol").each(function (i, value) { var field = $(value).attr("name"); if (field == null) { field = $(value).attr("id"); } if (value.tagName =