[removed].reload not working for Firefox and Chrome

前端 未结 8 547
灰色年华
灰色年华 2020-12-08 15:44

I want to change the user status on click of a Button, so all I am doing is, detecting the current status and changing, if needed.

But in this case the changes the s

8条回答
  •  猫巷女王i
    2020-12-08 16:17

    Have you tried this?:

    window.location = window.location;
    

    Apparently you can drop the "window.", but haven't tried it myself.

提交回复
热议问题