2011-12-03から1日間の記事一覧

backbone.jsでフラグメントがない場合は#homeに遷移させる

先日作成したRouterのサンプルで、フラグメントがない場合、#homeを表示するようにしてみました。 http://dl.dropbox.com/u/494487/backbone-sample/routing/index.html $(function(){ App.router = new App.Router; if(Backbone.history.getFragment() === …