emberjs-cn / www.emberjs.cn Goto Github PK
View Code? Open in Web Editor NEWEmber.js的中文开发者交流平台,提供Ember.js官方网站指南和API的中文翻译,持续关注最近的社区动态,为您提供高质量的Ember.js中文资料。
Home Page: http://www.emberjs.cn
Ember.js的中文开发者交流平台,提供Ember.js官方网站指南和API的中文翻译,持续关注最近的社区动态,为您提供高质量的Ember.js中文资料。
Home Page: http://www.emberjs.cn
模型也声明了它与其他对象的关系。例如,一个Order可以有许多LineItems,一个LineItem可以属于一个特定的Order。
App.Order = DS.Model.extend({
lineItems: DS.belongsTo('lineItem')
});
App.LineItem = DS.Model.extend({
orders: DS.hasMany('order')
});
http://www.emberjs.cn/guides/templates/links/
第11行左右的地方,photos.photo
, 应为 photos.edit
/ source / guides / routing / rendering-a-template.md 第一段 “指责”应为“职责”
www.emberjs.cn redirected to gitlab.menglifang.org.
用github登录也有问题,输入信息并点击注册时提示“密码长度需大于6位”……另外,直接注册倒是成功了,但是没有收到验证邮件,163的邮箱,已经半小时了……
http://www.emberjs.cn/guides/concepts/core-concepts/
这个页面的 outlet
翻译成 出口
,很费解啊。是否可以用 插座
来代替?将其他的模板内容像电器一般插入插座
。
理解Ember.js: 视图层的414行段落中,将view's children
直接翻译成视图的子
略生硬,应该加上名词“元素”或“视图”好些。
honglei@ubuntu:~/www.emberjs.cn-master$ bundle exec rake preview
== The Middleman is loading
/home/honglei/www.emberjs.cn-master/config.rb:4:in `require': /home/honglei/www.emberjs.cn-master/lib/toc.rb:88: invalid multibyte char (US-ASCII) (SyntaxError)
/home/honglei/www.emberjs.cn-master/lib/toc.rb:85: invalid multibyte char (US-ASCII)
/home/honglei/www.emberjs.cn-master/lib/toc.rb:85: syntax error, unexpected $end, expecting keyword_end
编辑页面</a>
^
from /home/honglei/www.emberjs.cn-master/config.rb:4:in `block in initialize'
from /home/honglei/www.emberjs.cn-master/config.rb:4:in `each'
from /home/honglei/www.emberjs.cn-master/config.rb:4:in `initialize'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/extensions.rb:162:in `instance_eval'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/extensions.rb:162:in `initialize'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/data.rb:35:in `initialize'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/application.rb:184:in `initialize'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/request.rb:52:in `new'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/core_extensions/request.rb:52:in `inst'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/preview_server.rb:103:in `new_app'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/preview_server.rb:21:in `start'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli/server.rb:79:in `server'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:77:in `method_missing'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:29:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:128:in `run'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /var/lib/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/lib/middleman-core/cli.rb:22:in `start'
from /var/lib/gems/1.9.1/gems/middleman-core-3.2.2/bin/middleman:18:in `<top (required)>'
from /usr/local/bin/middleman:23:in `load'
from /usr/local/bin/middleman:23:in `<main>'
honglei@ubuntu:~/www.emberjs.cn-master$
不太了解ruby,看代码好像没有问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.