路由器Backbone JS与Ecmascript 6

时间:2016-04-18 12:07:11

标签: 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');
}
}

0 个答案:

没有答案