js: function responseJson1(){ var array=[1001,1002]; var str=""; //获取table对象 $.ajax({ type:'post', url:'${pageContext.request.contextPath }/testList.action', //请求是key/value这里不需要指定contentType,因为默
MVC 接收参数数组(集合) 示例样本: public class Person { public string FirstName { get; set; } public string LastName { get; set; } ... } // ASP.NET MVC [HttpPost] public ActionResult Create(List<Person> persons) { // doSomething. }
这是不用循环的方法 就是传过来的是一位数组 //编辑党建分类 function gk_bj(id){ $.post("{:U('Luser/lei_edlt')}",{id:id},function(v){ var html =''; html += '<input type="text" name="title" value="'+v.list['title']+'" >'; html += '<input
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><h
test.php <script type="text/javascript"> function selectInput(oSelect) { var value= oSelect.value; var url = "2.php"; var postStr = "value="+ value ; //-------------------------------------------------------------------