JS代码中window.location.href="xxxxxxxxxxxxxxxxxxxx";如果想要完成history.back();的效果请问xxxxxxx要写点什么?
window.location.href="history.go(-1)";这样写,肯定是不行的....

解决方案 »

  1.   

    获取要返回的请求,然后location.href
      

  2.   

    没听懂楼上说的...再问一次
    window.location.href="history.go(-1)";不能完成后退效果请问将双引号中的内容替换成什么,才能完成后退效果?
      

  3.   

    比如你要返回页面的请求为“aa.action”,返回时就直接请求
    location.href=“aa.action”
      

  4.   

    后面写个方法,方法中写history.back();或者history.go(-1)
      

  5.   

    "javascript:history.back();"可以这样写啊
      

  6.   

    window.location.href = document.referrer;或者window.location.href = "<%=request.getHeader("Referer")%>";//jsp