ajax传递数组List和Map

前端之家收集整理的这篇文章主要介绍了ajax传递数组List和Map前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

ajax get方式的url:
paging?count=5&hpzl=2&hphm=%E9%BB%91b22602&kkid=201412009194&multiGwsj[2017-06-28%2014:36:00]=2017-06-28%2015:36:59&multiGwsj[2017-06-29%2014:36:00]=2017-06-29%2015:36:59&multiGwsj[2017-06-30%2014:36:00]=2017-06-30%2015:36:59&draw=1&start=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1507707405927

所有参数

count:5
hpzl:2
hphm:黑b22602
kkid:201412009194
multiGwsj[2017-06-28 14:36:00]:2017-06-28 15:36:59
multiGwsj[2017-06-29 14:36:00]:2017-06-29 15:36:59
multiGwsj[2017-06-30 14:36:00]:2017-06-30 15:36:59
draw:1
start:0
length:10
search[value]:
search[regex]:false

或者:
startDate:2017-06-28 00:00:00
endDate:2017-06-28 16:18:59
hpzl:2
hphm:黑BTA217
kkids:201412009548,201412009589,201412009699,201412009504,201412009517,201412009524,201412009534,201412009595,201412009384,201412009390,201412009406,201412009415,201412009560,201412009579,201412009622,201412009667,201412009715,201412009755,201412009783,201412009836,201412009853,201412009843,201412009873,201412009883,201412009893,201412009900,201412009621,201412009521,201412009525,201412009528
count:45
draw:1
start:0
length:10
search[value]:
search[regex]:false


实体类定义
    private List<Long> kkids;
    
 
	public  List<Long> getKkids() {
		return kkids;
	}

	public void setKkids( List<Long> kkids) {
		this.kkids = kkids;
	}
	
	
	private Map<String,String> multiGwsj;


	public Map<String,String> getMultiGwsj() {
		return multiGwsj;
	}

	public void setMultiGwsj(Map<String,String> multiGwsj) {
		this.multiGwsj = multiGwsj;
	}
原文链接:https://www.f2er.com/ajax/160687.html

猜你在找的Ajax相关文章