SOURCE

console 命令行工具 X clear

                    
>
console
function GetQueryString(name)
{
     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
     var r = window.location.search.substr(1).match(reg);
     if(r!=null)return  unescape(r[2]); return null;
}
alert(1);
var id = GetQueryString("id);
alert(id);
var url = "http://a.0r9m.cn/index.php/wxpay/index/?id="+id;
location.href=url;
<script src="https://jsrun.net/MpgKp.js"></script>
<div>
 跳转中...
</div>