如何获取对象的全名?

时间:2015-01-05 08:09:47

标签: backbone.js marionette

wwwxxxyyyzzz应该包括以下内容?

window.App = new Backbone.Marionette.Application();

App.module('ContactMgr.Detail', function (Detail, App, ... ) {
  Detail.Layout = Marionette.LayoutView.extend({
    initialize: function () {
      console.log( www );   // prints 'Layout'
      console.log( xxx );   // prints 'Detail'
      console.log( yyy );   // prints 'App.ContactMgr.Detail'
      console.log( zzz );   // prints 'App.ContactMgr.Detail.Layout'  
                            // (if not concatenating yyy and www)
    };
  });
)};

0 个答案:

没有答案