function GetRequest(){
var cs = window.location.search.substring(1);
var hehe = cs.substring(cs.indexOf("=")+1);
return hehe;
}
讲解:
当发送请求:http://127.0.0.1/test.html?hehe=1 时,
在test.html 中 加上以上的方法,返回的就是参数值,这里能返回到1.