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