摘要:
服务端webapi: public string getValue5([FromBody]List<Student> student) { return student[0].Name + " " + student[1].Name; } 客户端控制台: public static string H 阅读全文
摘要:
解决跨域问题 1.webapi安装cors 2.WebApiConfig下添加 public static void Register(HttpConfiguration config) { config.EnableCors(new EnableCorsAttribute("*", "*", "* 阅读全文