1.在方法参数前加上JsonRead<T>的泛型特性 public ActionResult GetData([JsonRead(typeof(PostData))]PostData postData) 2.继承CustomModelBinder类: public class JsonReadAttribute : CustomModelBinderAttribute { private Type type; public JsonReadAttribute(Type type) { this…