
Java
qingyue32
这个作者很懒,什么都没留下…
展开
-
Java url解码
public static String decode(String url) { try { String prevURL = ""; String decodeURL = url; while (!prevURL.equals(decodeURL)) { prevURL = decodeURL; decodeURL = URLDecoder.decode(decode...原创 2018-06-07 17:17:14 · 2005 阅读 · 0 评论 -
string转为json
import org.json.JSONObject; String str = "{\"result\":\"success\",\"message\":\"成功!\"}"; JSONObject json = new JSONObject(str); System.out.println(json.toString());import net.sf.json.JSONObjec...原创 2018-06-07 17:22:25 · 3567 阅读 · 0 评论