How to refresh a page in a backbone application

后端 未结 13 2287
北恋
北恋 2021-01-30 22:32

I am using backbone to build my web app.

Currently I am facing an issue whereby if I am on the home page, I am unable to refresh the same page by just clicking on the \'

13条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 22:58

    In case you want to reload the whole page with a desired view. This might make senes for the home button. The advantage will be that it'll refresh the memory.

    Go to any route without loading it (without the 'true') and then reload

    Backbone.history.navigate('route/goes/here');
    window.location.reload();
    

提交回复
热议问题