php reload page without posting data

前端 未结 6 1842
悲&欢浪女
悲&欢浪女 2020-12-11 04:35

I\'m trying to refresh a page without sending POST from the previous time.

I\'ve tried

window.open(\"postme.php?r=t\", \"_self\");

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-11 05:09

    Well.. late too I suppose, but then it could help someone. I used :

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

    In replacement of location.reload(); this will refresh the page without prompting user to resend information.

提交回复
热议问题