0

我必须通过更改浏览器中的 url 来限制用户重新路由页面。有没有办法使用 ember 来限制它?

4

1 回答 1

1

是的。如果您根本不希望浏览器的 URL 与您的应用程序交互,您可以禁用位置 API

App.Router.reopen({
  location: 'none'
});

请参阅http://emberjs.com/guides/routing/specifying-the-location-api/

于 2013-04-03T05:03:14.647 回答