html之间传递参数

描述:html1向html2传递必要参数,比如修改功能,传递id

在updEntry.html中,获取

 

GetQueryString方法:
var LocString = String(window.document.location.href);
function GetQueryString(name) {
    var rs = new RegExp("(^|)" + name + "=([^&]*)(&|$)", "gi").exec(LocString), tmp;
    if (tmp = rs) {
        return decodeURI(tmp[2]);
    }
    return "";
}

你可能感兴趣的:(JavaWeb)