Backbone.js Router 2017-02-23 2024-06-07 backbone Backbone Router라우터 기능으로 MVC에서의 Controller 해당되며, location.hash(url 변경)의 변경에 따른 처리를 담당한다. 1234567891011121314var Router = Backbone.View.extend({ routes: { '': 'home', //#default help: 'help', //#help 'search/:query': 'search' //#search/test, 'search/:query/p:page': 'search' //#search/test/p7 }, home: function() { console.log('home'); }, search: function(query, page) { console.log(query, page); }}); 참조 http://backbonejs.org/#Router http://www.slideshare.net/jinkwonlee52/backbonejs-40817718