手动解析URL字符串中的参数,写了一个工具类. final ; final ; public Map<String, String> parseRequestParam(String url) { Map<String, String> map = new HashMap<String, String>(); if (!url.contains("?")) { return null; } String[] parts = url.split(&qu
function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i"); var r = window.location.search.substr(1).match(reg); if (r!=null) return unescape(r[2]); return null; } 例如url: http://192