—————————后台——————- 代码如下: [HttpPost] public JsonResult CheckStock(IEnumerable pvIds) { var resultList = new List(); if (pvIds != null) { foreach (var pvIdsCount in pvIds) { var pvId = pvIdsCount.pvId; var count = pvIdsCount.count; var stock = _productService.GetProductVariant