JsonRequestBehavior.AllowGet作用
若要允许 GET 请求,请将 JsonRequestBehavior 设置为 AllowGet
MVC 默认 Request 方式为 Post。
$.ajax({ url: "/FriendLink/GetPersonInfo", type: "POST",
页面是post 不用设置
将序列化后的值 保存到string类型中
dss string类型 转换为json对象
这样就好了
将datatable 序列化为string 绑定到对象的字段上
一起返回到页面