赞
踩
- //ids为前端传回的json字符串,首先将其用&分割
- String[] idf = ids.split("&");
- //初始化string数组
- int x = 0;
- String[] idz = new String[idf.length];
- //将json中包含数组中的字符放到数组中
- for(String i : idf){
- String[] y = i.split("=");
- idz[x++] = y[1];
- }
- //得到idz字符串数组
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。