人们使用的 JavaScript 框架有哪些示例?

发布于 2024-10-07 11:20:48 字数 163 浏览 0 评论 0原文

我真的是 jQuery 的忠实粉丝,但我不认为它是一个网站的框架,而更像是一个库。我正在寻找某种框架,它可以为我提供在 javaScript 中构建真正结构化应用程序的工具。我找到了backbone.js,但发现它有点令人困惑。这是一个很好的吗?还有其他类似的吗? MVC 模式真的很酷,但我还没有找到任何东西。

I am really big fan of jQuery, but I don't see it as a framework for a site, more like a library. I am looking for some sort of framework that will give me the tools to build really structured applications in javaScript. I have found backbone.js, but find it somewhat confusing. Is that a good one, and are there others similar to it? an MVC pattern would be really cool, but I havent found anything.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

甜中书 2024-10-14 11:20:48

我目前使用 RightJSRequireJS 。它对我的目的来说效果很好。我使用 jQuery + jQuery UI以前。当前的组合更适合我的风格(更多准系统功能,而不仅仅是 DOM 包装器 + UI 插件)。

我知道 RightJS 并不那么受欢迎。文档充足,作者反应灵敏。这弥补了这一点。 :)

其他一些替代方案:

我确信还有很多其他选择。这实际上取决于您的喜好和具体需求。

就我个人而言,我一直在关注 Sencha 的产品(ExtJSSencha Touch)最近。后者特别有趣,因为它提供了为移动设备编写跨平台应用程序的简单方法。至少在 iPad 上运行得很好!

I use currently RightJS with RequireJS. It has worked out well for my purposes. I used jQuery + jQuery UI previously. The current combo fits my style better (more barebone functionality instead of just DOM wrapper + UI plugins).

I know RightJS isn't that popular. The docs are adequate and the author is responsive. This makes up for that. :)

Some other alternatives:

I'm sure there are plenty of more alternatives. It really comes down to your preferences and exact needs.

Personally I have been looking at Sencha's offerings (ExtJS, Sencha Touch) lately. The latter is particularly interesting as it provides simple means to write cross-platform apps for mobile devices. Works great in iPad at least!

冷血 2024-10-14 11:20:48

Google Closure 库和Tools 相当不错,是他们用来构建 Gmail、Google 地图等的框架。

The Google Closure Library & Tools is pretty good, and is the framework they use to build Gmail, Google Maps, and so on.

蓬勃野心 2024-10-14 11:20:48

jQuery 和 YUI 3:两个 JavaScript 库的故事 是一个关于 jQuery 开发人员的故事,他发现 Y​​UI3 更“类似框架”并且更适合他的项目。

我已经使用 YUI2 多年了,它从未让我失望过。

jQuery and YUI 3: A Tale of Two JavaScript Libraries is a story about a jQuery developer that found that YUI3 was more "framework-like" and apt for his project.

I've been using YUI2 for years and it never disappointed me.

迷爱 2024-10-14 11:20:48

如果您喜欢 Ruby/Python 等动态 OOP 语言,那么您应该真正检查 RightJS。它非常紧凑、快速且简单。 RightJS 完全基于 OOP 范式构建,允许您以严肃但不无聊的方式实现严肃的事情。

至于 dom 部分,它并不完全按原样使用 MVC,但 RightJS 有 OOP dom 包装器,具有继承等。这提供了基本相同的结果,但头痛程度要少得多。

如果您对模式特别感兴趣,请查看 https://github.com/rightjs/rightjs-模式:)

If you like dynamic OOP languages like Ruby/Python, you should really check RightJS. It is very compact, fast and simple. RightJS is built fully on OOP paradigm and allows you to implement serious stuff in a serious but not boring way.

As for the dom part, it doesn't exactly uses MVC as is, but RightJS has OOP dom-wrappers, with inheritance and so one. That provides basically the same result, but with much less headache.

And if you're particularly interested in patterns, check this out https://github.com/rightjs/rightjs-patterns :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文