第一个页面的js传值
window.open("SHTS_PlanSendCarStateInfo.aspx?Rnd=" + Math.random() + "&matchId=" + encodeURI(Grid_List.getItemFromClientId(rowId).getMember("MATCHID").Value));
Rnd=" + Math.random() :刷新
encodeURI:加吗
第二个页面的后台接值
hd_esocor.Value = Server.UrlDecode(Request.QueryString["matchid"]).ToString();
encodeURI:解码
本文介绍了如何在第一个页面使用JavaScript进行URL参数编码并通过window.open打开新页面的方法,同时讲解了第二个页面如何通过Server.UrlDecode对接收到的参数进行解码。
946

被折叠的 条评论
为什么被折叠?



