0
有人可以請幫我弄清楚爲什麼我得到我的「AS.controller」是在javascript中未定義的錯誤。這裏是一個的jsfiddle:http://jsfiddle.net/deewen/5ZgaT/ 在的jsfiddle,該eror是燼app.controller是未定義的錯誤
遺漏的類型錯誤:無法調用方法的不確定
'擴展' 在我的瀏覽器,我得到
類型錯誤:AS.Controller未定義
餘燼代碼是:
window.AS = Ember.Application.create({
LOG_TRANSITIONS: true
});
AS.baseURL = "/platformservices/";
AS.RESTAdapter = DS.RESTAdapter.extend({});
AS.Store = DS.Store.extend({
revision: 12,
adapter: 'AS.RESTAdapter'
});
AS.Router.map(function(){
this.resource('analytics', {path: '/analytics'}, function(){
this.resource('analyticsRuns',function(){
this.resource('analyticsRun',{path: ':runId'});
});
});
});
AS.IndexRoute = Ember.Route.extend({
redirect: function() {
this.transitionTo('analytics');
}
});
AS.AnalyticsIndexController = AS.Controller.extend({
engagements : null,
exercises : null,
exerciseRuns : null,
//......
謝謝,就是這樣,我真的需要第二套眼睛。再次感謝。 –