摘要: 后台如下: [HttpPost] public ActionResult SaveForm(List<StopPostVM> list){ some code here... } 前端js这么传送参数: $.ajax({ type: "post", url: "...", data: { "list 阅读全文
posted @ 2021-09-16 20:04 James·wang 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1、遍历json对象 var obj = {id:"id",name:"name"}; $.each(obj,function(){ //此处this 指代当前遍历到的obj 的胞元素,即属性键值对 alert(this.id);//提示"id" }); var obj2 = [{id:"id1"} 阅读全文
posted @ 2021-09-16 11:04 James·wang 阅读(222) 评论(0) 推荐(0) 编辑