有如下情况: <form > <input /> <input /> <table cellpadding="0" cellspacing="0" width="100%"> <tr> <td colspan="6" align="right"> <a href="${ctxPath}/freeEvaluation.do?cmd=freeEvalAccountStandard" style="text-decoration: underline"><font size="3" color="#5500FF"><b>免评客户标准</b></font></a> </td> </tr> </table></form> 提交之后,发现取不到两个隐藏域的内容。 原因很简单,作用域不同,所以在超链接是无法访问那两个隐藏域的。 修改成: <a href="${ctxPath}/freeEvaluation.do?cmd=freeEvalAccountStandard&account=${account_id}&mgrOrgId=${freeEvalAccount.fk_manager_organization_id}" style="text-decoration: underline"><font size="3" color="#5500FF"><b>免评客户标准</b></font></a> 就可以了。 或者可以这样解决: <a href="#" onclick="queryStandard()" style="text-decoration: underline;"><font size="3" color="#5500FF"><b>免评客户标准</b></font></a> 然后在js函数里面去实现 function queryStandard(){ window.top.changeTitle("免评客户标准"); document.detailForm.target = "_self"; document.detailForm.cmd.value = "freeEvalAccountStandard"; document.detailForm.submit(); } 相关文章: 2021-07-04 2021-07-11 2022-12-23 2021-04-05 2021-11-09 2021-08-04 2021-11-21 2021-11-09