history.go(-1)无法刷新后台的替代方案

  • iframe父子页面情况下的goback()实现
    window.parent.location.href=window.parent.document.referrer;
    window.top.location.herf=window.parent.document.referrer;
  • 正常页面情况下的goback()实现
    window.location.href=document.referrer;
    相比于window.parent.location.href = "/xxx/xx/xxxxxx.do?xx=xx&xx="+xx+"&xx="+xx+"&xx="+xx+"&xx="+xx+"&xx="+xx+"&xx="+xx+"&xx="+xx+"&xxxxxx="+xxxxxx+"&xxxxxx="+xxxxxx+"&xxxxxx="+xxxxxx+"&xxxxxx=xxxxxx&xxxxxx="+xxxxxx+"&xxxxxx="+xxxxxx;,更完美的实现

你可能感兴趣的:(history.go(-1)无法刷新后台的替代方案)