我正在更新到Ember 1.13,我想在我用来从View调用didInsertElement的应用程序模板的后台淡入淡出.
App.ApplicationView = Ember.View.extend({
didInsertElement: function() {
$('#login-bg').fadeIn(600);
}
});
Run Code Online (Sandbox Code Playgroud)
抛出一个已弃用的因为视图正在消失.Ember是否为模板创建了一个组件?这不起作用:
App.ApplicationComponent = Ember.Component.extend({
didInsertElement: function() {
$('#login-bg').fadeIn(600);
}
});
Run Code Online (Sandbox Code Playgroud) ember.js ×1