JavaScript 没有 collection 的 spinejs 用起来很纠结

feipinghuang · December 18, 2011 · Last by feipinghuang replied at February 04, 2012 · 3235 hits

最近学习了一下 spinejs,想用它做一个简单的 twitter 客户端。 像 twitter 一样用户通过 omniauth-twitter 登陆后显示他的 home_timeline。 我的数据接口是/statuses/home_timeline.json。 在 backbone 中我们可以建一个 status model 和一个 home_timeline collection。 在 spine 我该怎么建 model 呢

#1 楼 @fredwu 怎么做呢 是建一个 status model,再建一个 home_timeline has_many status 吗?

You need to Sign in before reply, if you don't have an account, please Sign up first.