我只需要在视图中插入和删除视图到DOM中; 这是观点:
App.LoadingEngView = Ember.View.extend({
templateName: 'assets/loadingEng'
});
这就是我插入它的方式:
App.ApplicationController = Ember.Controller.extend({
updateCurrentPath: function() {
...
var view = App.LoadingEngView.create();
view.appendTo('body');
...
}
});
它有效,但我收到了弃用警告;我该如何解决这个问题?
答案 0 :(得分:0)
不应Importclimbing.LoadingEngView
为App.LoadingEngView
?