问题相关代码,请勿粘贴截图
register1= function (){
//window.location.href="<%=request.getContextPath()%>/register.jsp"
window.location.href="<%=request.getContextPath()%>"+"/register.jsp" //字符串拼接可以进行跳转
window.location.href=<%=request.getContextPath()%>+"/register.jsp" //为啥这种不行
}