问题描述
请参阅。点击链接显示警报。但是将管理资源下的EmberJS版本更改为导致链接消失。如何解决这个问题?
在EmberJS版本0.9.8.1中,Handlebars默认包含在Ember中。 >
它不是1.0pre版本的情况,所以你必须手动添加它。
PS:不要忘记添加 Add.initialize()
,否则您将看到意外的行为。
。
See http://jsfiddle.net/gazmcghee/v6PSA/. Clicking the link shows an alert. But changing the version of EmberJS under "Manage Resources" to https://github.com/downloads/emberjs/ember.js/ember-1.0.pre.js causes the link to disappear. How do I fix this ?
In the EmberJS version 0.9.8.1, Handlebars was included by default in Ember.
Its not the case with the 1.0pre version, so you have to manually add it.
PS: Don't forget to add Add.initialize()
, or you will see unexpected behaviour.
Here is your JSFiddle that includes Handlebars.
这篇关于手柄操作助手在EmberJS 0.9.8.1中工作,但不是Ember 1.0 Pre的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!