将获取的字符串以逗号切割后遍历转化为数组
String[] arr = request.getParameter("ids").split(",");
Long ids[] = new Long[arr.length];
for(int i=0;i<arr.length;i++){
ids[i]=Long.parseLong(arr[i]);
}
将获取的字符串以逗号切割后遍历转化为数组
String[] arr = request.getParameter("ids").split(",");
Long ids[] = new Long[arr.length];
for(int i=0;i<arr.length;i++){
ids[i]=Long.parseLong(arr[i]);
}