1. 首页
  2. 数据库
  3. 其它
  4. MVC后台创建Json(List)前台接受并循环读取实例

MVC后台创建Json(List)前台接受并循环读取实例

上传者: 2021-01-04 00:21:33上传 PDF文件 29.12KB 热度 19次
—————————后台——————- 代码如下: [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
下载地址
用户评论