function Values() {
var result;
var url = decodeURIComponent(window.location.href);
alert(url);
if (url.indexOf("?") != -1) {
result = url.substr(url.indexOf("=") + 1);
}
return result;
}
使用
decodeURIComponent();//进行解码,可将页面乱码转换成中文。