URL 通过Get方式传递数组参数
方法1:
?id=1&id=2&id=3
后台获取时,只需要reqeust.getParameterValues("id") 获取String数组。
http协议的要求
解析参数时,相同的key会覆盖前一个,
如果带[]会当成一维数组来处理,就不会覆盖了
直接可以url =url+"?str1="+arrayP[0]+"&str2="+arrayP[1];
Generally, when the target server uses a strong typed programming language like Java (Servlet), then you can just send them as multiple parameters with the same name. The API usually offers a dedicated method to obtain multiple parameter values as an array.
foo=value1&foo=