摘要:
跳转前:window.open("http://localhost:9728/content/agent/devolution.html?search_agent=" + encodeURIComponent(va));取:下面是解码的方法:function Utf8ToUnicode(strUtf8) { var bstr = ""; var nTotalChars = strUtf8.length; // total chars to be processed. var nOffset = 0; ... 阅读全文
摘要:
function getQuery(name) {var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");var r = window.location.search.substr(1).match(reg);if (r != null) return unescape(r[2]); return "";} 阅读全文