jQuery Plugins vs UI vs 一些替代方案 [英] jQuery Plugins vs UI vs some alternative

查看:16
本文介绍了jQuery Plugins vs UI vs 一些替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尽可能地使用 jQuery 构建一个 Web 应用程序.每次我需要添加一些新功能时,我通常会搜索一个可以满足我需要的 jQuery 插件,然后将其集成到我的 Web 应用程序中.当然,一段时间后,这个应用程序变得非常混乱,其中包含来自不同作者的所有这些随机"插件,每个插件都有不同的编码风格、命名约定等.我真的更喜欢使用一个统一的 UI 库或框架.我正在看 jQuery UI,但坦率地说,我并没有留下深刻的印象.虽然 jQuery 工具 (http://flowplayer.org/tools/download.html) 看起来有点像好的.有没有人有任何这些经验?

I've been building a web app using jQuery as much as possible. Every time I need to add some new feature, I usually search for a jQuery plugin that does what I need, then I integrated it into my web app. Of course after a while this application becomes very cluttered with all these "random" plugins from different authors, each one having different coding style, naming convention, etc. I would really prefer to use one uniform UI library or framework. I am looking at jQuery UI, but frankly I am not impressed. Although jQuery Tools (http://flowplayer.org/tools/download.html) looks kind of nice. Does anyone have any experience with any of these?

您还有其他建议吗?不仅是关于要使用哪些 UI 框架,还有你对处理具有不同 UI 插件的混乱 Web 应用程序的想法.

Do you have any other suggestions? Not just regarding what UI frameworks to use, but your thoughts regarding dealing with cluttering web applications with different UI plugins in general.

谢谢

推荐答案

没有太多的动作可以为 jquery 制作一堆不那么碎片化的 ui 库.就创作风格而言,我认为很多人都开始遵循一种相当严格的风格,而且大多数时候,好的插件可以很好地配合使用.

There is not a ton of movement to make a bunch of less fragmented ui libraries for jquery. I think many people are beginning to follow a pretty regimented style as far as authoring style goes, and most of the time, good plugins play together very nicely.

具体来说——Mike Alsup 的模式,描述如下:

Specifically - Mike Alsup's pattern, described here:

http://www.learningjquery.com/2007/10/插件开发模式

是一种在大多数流行插件中都非常统一的插件.如果您发现插件遵循这种模式,您可以更有信心相信它会按照您希望的方式工作.

is one that is very uniform across most popular plugins. If you notice a plugin follows this pattern, you can have more confidence that it works the way you think you'd want it to.

但是,您可能还有另一种选择 - ExtJS ( http://www.extjs.com/ ) 可以用作 jQuery 之上的 UI 库.只需包含 jQuery,然后是 ext-jquery apapter 文件,然后是 extjs ui 库.这将为您提供整个 extjs UI 库(非常统一且经过测试),并且仍然为您提供所需的所有核心 jQuery 访问,以及其他插件可能性.

However, there might be one more alternative for you - ExtJS ( http://www.extjs.com/ ) can be used as a UI library on top of jQuery. Just include jQuery, then the ext-jquery apapter file, and then the extjs ui library. This will give you the entire extjs UI library (which is very uniform and tested), and still give you all the core jQuery access that you want, as well as other plugin possibilities.

希望对您有所帮助.

这篇关于jQuery Plugins vs UI vs 一些替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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