复制代码代码如下:
function getParam(paramNome) {
paramValue = "";
isEncontrado = falso;
if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
arrSource = unescape(this.location.search).substring(1, this.location.search.length).split("&");
eu = 0;
while (i <arrSource.length && !isFound) {
if (arrSource[i].indexOf("=") > 0) {
if (arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase()) {
paramValue = arrSource[i].split("=")[1];
isEncontrado = verdadeiro;
}
}
eu++;
}
}
return paramValor;
}
Nome: //www.VeVB.COm/UserQuery.aspx?id=202
getParam("id") por 202