Using Backbone.history to go back

后端 未结 2 1468
借酒劲吻你
借酒劲吻你 2021-02-05 00:31

I have inherited a half-finished mobile app built using Backbone.js (which I have never used).

I need, quite simply, to send the user back when they click a back button.

2条回答
  •  失恋的感觉
    2021-02-05 01:09

    Nowadays you can also use some more Backbone with Backbone.history.history which provides you methods like .forward, .go and finally Backbone.history.history.back().

提交回复
热议问题