刷新页面代码:window.location.reload();    当刷新的时候,页面提示如图:    如何当刷新的时候不让页面提示这个信息,跳过这个操作直接刷新。

解决方案 »

  1.   

    window.location.href = window.location.href;
      

  2.   

    window.location = window.location;
      

  3.   

    window.location.href = window.location.href;
    window.location = window.location;以上两个方法,执行以后,页面变白板了。
      

  4.   

    因为需要重新请求servlet,所以才会有图片上的提示。单纯的取本页连接去刷新是不行的。
      

  5.   

    需要刷新的部分就这个servlet请求.
      

  6.   


    window.location = window.location.href;
    如果你是servlet跳转是forward的形式应该就没有这个了
    不行就用ajax吧
      

  7.   

    window.parent.location.href=window.location.href