我目前在其网址为的页面中http://localhost:49852/Default.aspx?MID=17
在此页面中,我有以下代码
<a href="Configure.aspx"><span class="ico gray shadow gear"></span>Configure</a>
我希望一旦用户单击Configure
链接,URL 中的 MID 参数将被裁剪,用户将被重定向到
http://localhost:49852/Configure.aspx?MID=17
这是 JS 代码
function getParameterByName(name) {
var match = RegExp('[?&]' + name + '=([^&]*)')
.exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
我如何将它们绑定在一起?