對象我有幾個屬性,包括一個欲包含一個對象的圖。該視圖如下所示:顯示存儲在圖屬性(Ember.js)
Whistlr.LightboxView = Em.View.extend
templateName: 'lightbox'
classNames: ['ember-lightbox']
content: ""
content
是我想要包含對象的屬性。我設置這樣的對象:
lightbox = Ember.View.views[$(".ember-lightbox").attr('id')]
lightbox.set 'content', Whistlr.AuthRegisterView.create()
據我所知,該對象設置正確。然而,當我嘗試這樣顯示的:
#lightbox
view.content
瀏覽器顯示這一點,而不是:
<Whistlr.AuthRegisterView:ember364>
我怎樣才能得到它實際呈現的對象,而不是代表對象的字符串?