代码如下: //后台 [HttpPost] public JsonResult CheckStock(IEnumerable pvIds) { } public class pvIdsCount { public int pvId { set; get; } public int count { set; get; } } //前台 $(document).ready(function () { $(‘#checkout’).click(function () { var productIdCounntList = []; var allPvId = $(“.produ