骨干与requirejs [英] backbone with requirejs

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

问题描述

我建立一个复杂的Web应用程序,并尝试使用requirejs与骨干。我发现backbonejs是一个非AMD框架限制我使用requirejs开箱。

I am building a complex web app and trying to use requirejs with backbone. I found out that backbonejs is a non AMD framework which restricts me to use requirejs out of the box.

我研究了互联网上,发现有可用的补丁,使骨干AMD兼容。

I researched on internet and found that there are patches available to make backbone AMD compliant.

请指导,如果打补丁这种方式是一个没有问题的设置。我会因backbonejs核心文件的补丁运行到应用程序开发过程中的任何问题?

Please guide if patching this way is a no-issue setup. Will i run into any issues during the app development due to patching of core file in backbonejs?

如果我道歉,一个愚蠢的问题:)

I apologise if its a stupid question :)

推荐答案

不,这不是一个愚蠢的问题。实际上,我们已经做到了这一点,并工作正常对我们来说,到目前为止:)

Nope, it's not a stupid question. We actually have done this and is working fine for us, so far :)

您可以按照如何做到这一点本指南: http://kilon.org/blog/2012/08/build-backbone-apps-using-requirejs/

You can follow this guide on how to do it: http://kilon.org/blog/2012/08/build-backbone-apps-using-requirejs/

不要忘记阅读茉莉测试它在单位的一章。 pretty不错的组合在一起。

Don't forget to read the chapter on unit testing it with Jasmine. Pretty nice combination all together.

这篇关于骨干与requirejs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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