/*前台往后台传参数时,可以这样写*/ var chessId = "123"; var i=0; var data = []; /*添加单个参数*/ data.push({name:"type",value:"分配"}); data.push({name:"id",value:chessId}); /*循环添加集合参数对象*/ data.push({name:"myList["+i+"].mid
//定义数组 var _arrays = []; for (var i = 0; i < 10; i++) { _arrays.push(i); } //post $.post(href, {list: _arrays} ); //get post datas var shangpins = Request.Params.GetValues("list[]");