使用Knockoutjs&安培;骨干一起 [英] Using Knockoutjs & Backbone together

查看:88
本文介绍了使用Knockoutjs&安培;骨干一起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我knockoutjs一个真正的大风扇。我有看到说knockoutjs&放一些职位的;骨干工作得很好。但我有麻烦入门骨干,不明白两者可以一起使用。是否有将展示如何使用knockoutjs和骨干一起的任何资源?

I'm a real big fan of knockoutjs. I've see a number of posts saying that knockoutjs & backbone work well together. But I'm having trouble getting started with backbone and don't understand how the two can be used together. Are there any resources that would show how to use knockoutjs and backbone together?

请注意,我不是在寻找一个讨论关于哪个更好。有在这一点上足够的帖子。

Note, I'm not looking for a discussion about which is better. There are enough posts on this point.

推荐答案

我想我会先问问自己:你喜欢什么,你想合并这两个框架吗?

I think I'd start by asking "What do you like about the two frameworks that you would like to merge?"

如果,例如,你想淘汰赛模型和骨干的意见,你应该能够使用来自两个自视图和模型的部件不紧在任何技术耦合的。

If, for instance, you like Knockout models and Backbone views, you should be able use the components from the two since the views and models are not tightly coupled in either technology.

不过,我会退后一步,问一个更高层次的问题:你到底想达到

But, I'd step back and ask a higher-level question: "What are you trying to achieve"?

我猜测你正在寻找让骨干观点有双向绑定。在这种情况下,你可能看这个线程了解双向骨干结合

I am guessing that you are looking to get Backbone views to have two-way binding. In that case, you might look at this thread about two-way binding in Backbone.

如果您正在寻找别的东西,我们或许可以指向你其他资源。如果我们更好地了解你想要达到的目标,最终,我们或许可以帮助您进一步。

If you are looking for something else, we can probably point you to other resources. If we know better what you want to achieve, ultimately, we can probably help you further.

这篇关于使用Knockoutjs&安培;骨干一起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆