在使用<%=request.getContextPath()%>时遇到的错误

正确代码:
window.location.href = “<%=request.getContextPath()%>/dept/delete?deptno=”+dno;

window.location.href = “<%=request.getContextPath()%>”+“/dept/delete?deptno=”+dno;

错误代码:
window.location.href = <%=request.getContextPath()%>+“/dept/delete?deptno=”+dno;

posted on 2022-07-29 09:15  霍志杰  阅读(14)  评论(0)    收藏  举报  来源

导航