标签: backbone.js ecmascript-6 router
我不明白如何使用带有ecmascript 6的BACKBONE.JS路由器。
export default class RouterApp extends Backbone.Router.extend{ constructor(){ super(); this.routes = { '' : 'home' }; } function home(){ alert('hello'); } }