onclick跳转另一页面同时传递数据

onclick="window.location.href='${ctx}/addInterview'" 这个是跳转到新页面的代码 怎么添加才能使如图的数据带过去 如图:把图一画红框的数据 传递到图二 去

window.location.href='${ctx}/addInterview?参数名1=参数值1&参数名2=参数值2'

这样就可以把你想要的参数传过图二.

追问


这样做了做完的效果是这样的  是不是还得在  别一个页面进行赋值啊

温馨提示:内容为网友见解,仅供参考
第1个回答  2018-03-29
window.location.href = "/shop/physical-store/store?id="+item.id;
相似回答