日期:2014-05-18  浏览次数:20747 次

springMVC请求在火狐或者谷歌浏览器中可以 IE中不行
location.href = "WXstaff/doDel?id=" + id;   页面上有这样一个请求,controller里面
@RequestMapping(value = "/doDel", method = RequestMethod.GET)
public String doDel(HttpServletRequest request, HttpServletResponse response)
throws Exception {。。。。。。},在火狐等其他浏览器中没什么问题,在IE中报The requested resource () is not available.也没错误信息,就是说找不到,请高手指点

------解决方案--------------------
试试:location.href = "<%=request.getContextPath()%>/WXstaff/doDel?id=" + id;