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.