【发布时间】:2013-01-08 00:18:09
【问题描述】:
在路由器上使用 map() 方法时出现未捕获的错误。有什么想法吗??
App.Router.map(function(match) {
match('/').to('index');
match('/models').to('models');
});
错误:: Ember JS :: Uncaught TypeError: Object App.Router has no method 'map'
灰烬版本: http://cloud.github.com/downloads/emberjs/ember.js/ember-latest.js
【问题讨论】:
-
您使用的是哪个版本的 Ember?
-
我正在使用 ember-1.0.0-pre.2.js
-
Router.map与新路由器有关。不在 1.0.0-pre.2 中。 -
我明白了,知道如何获取 ember.js 的最新版本吗?在 ember 网站上找不到链接。
标签: ember.js