GET http://google.com?id[]=22&id[]=23
没见过这种用法
貌似是想传入一个叫id的数组作为参数
原文
int[] ids = new int[] { 22, 23 };
HttpRequest request = HttpRequest.get("http://google.com", true, "id", ids);
System.out.println(request.toString()); // GET http://google.com?id[]=22&id[]=23
1
Registering OP 貌似真可以这样加入一个数组,,
http://stackoverflow.com/a/13998578/1290235 |
2
blacktulip 2015-06-18 16:46:14 +08:00
|
3
Registering OP @blacktulip
问题太简单了,,默默把它下沉了,, |
4
caixiexin 2015-06-18 17:42:08 +08:00
url get方式允许传数组参数,不久前我也才知道,蛤蛤
|
5
CDuXZMAPgHp1q9ew 2015-06-18 22:54:21 +08:00
多选吧....
|