JS动态给URI中添加参数
<SCRIPT LANGUAGE="JavaScript">
<!--
var parms = new Array({name:'ID',value:"2"},{name:'name',value:"zhangsan"})
function test(){
var uri = setParam("pduadmin/pdu/updateGuideGroup.do",parms);
alert(uri);
}
function setParam(uri,parms){
var pa = "";
for(var idx in parms){
pa += "&"+parms[idx].name+"="+parms[idx].value
}
return pa == "" ? uri : uri + pa.replace("&","?");
}
//-->
</SCRIPT>