Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 JavaScript 中的 location() 重新加载页面,并且还想传递一个变量值。下面的步骤对我不起作用。让我知道正确的程序。
location='success.jsp'+<%=ID%>;
您需要执行以下操作:
window.location='success.jsp?VARIABLE_NAME='+<%=ID%>;