String url = "mx://gfandetail?p_id=4310&source_type=0";
String arg = url.substring(url.indexOf("?")+1,url.length());
String[] strs = arg.split("&");
HashMap<String, String> map = new HashMap<String, String>();
for(int x=0;x<strs.length;x++){
String[] strs2 = strs[x].split("=");
if(strs2.length==2){
System.out.println(strs2[0]+" "+strs2[1]);
map.put(strs2[0], strs2[1]);
}
}
浙公网安备 33010602011771号