//URL : ...... &Date1=2020-04-28&Date2=8208&IDs[]=1&IDs[]=3 [HttpGet] public JsonResult Test( DateTime Date1, DateTime Date2, [FromQuery(Name = "IDs[]")] List<int> IDs ){ //..... }
ASP.NET Core FromQuery 参数
原文:https://www.cnblogs.com/lonelyxmas/p/12770414.html