[removed] How to truly reload a site with an anchor tag?

前端 未结 6 2087
遇见更好的自我
遇见更好的自我 2020-12-15 16:27

Take this code snippet for example:

window.location.href = \'mysite.htm#images\';

Already being on the site mysite.htm and tri

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-15 17:09

    Try this: window.location.href = 'mysite.htm?';

    EDIT: This will only work the first time; after that, the caching takes effect again.

提交回复
热议问题