[C#][WebAPI]

WebApiConfig -> 

config.Formatters.JsonFormatter.SupportedMediaTypes.Add(new MediaTypeHeaderValue("text/html"));

修改为 Json 返回内容。

猜你喜欢

转载自www.cnblogs.com/z5337/p/9115092.html