jquery和jquery UI有什么区别? [英] What is the difference between jquery and jquery UI?

查看:132
本文介绍了jquery和jquery UI有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery和jQuery UI有什么区别?它们都是不同的框架吗? jQuery库是否需要工作jquery UI或两者都是独立的?任何jQuery选项卡插件和jQuery UI选项卡之间有什么区别?哪个更好用?

解决方案

jQuery是核心库。 jQueryUI建立在它之上。如果你使用jQueryUI,你还必须包含jQuery。



jQuery选项卡在jQueryUI库之前。 jQueryUI选项卡基于jQuery选项卡。当前版本的jQuery选项卡是选项卡3 。如果我没记错的话(我依旧记得大约在一年前查看源代码),Tabs 3非常类似于jQueryUI中的内容。当然,jQueryUI版本尊重Themeroller主题。



我在一个项目中使用了jQueryUI。它有一些不错的功能,但是几乎没有小部件,它似乎正在以一种冰川的速度前进(似乎六个小部件已经存在超过一年)。也许它会得到第二次风。如果我记得,困扰我的一件事是,在许多小部件中,悬停状态和点击状态之间没有明显的区别。



所以我我不建议将jQueryUI用于其小部件。你可能想要它用于效果和可拖动/可拖动的交互处理。



在我看来,Google的Closure库中的小部件和ExtJS中的小部件看起来更有用。 / p>

What is the difference between jQuery and jQuery UI? Are they both different frameworks? Is jQuery library needed to work jquery UI or both works standalone? what is difference between any jQuery tab plugin and jQuery UI Tab? which is better to use?

解决方案

jQuery is the core library. jQueryUI is built on top of it. If you use jQueryUI, you must also include jQuery.

jQuery Tabs preceded jQueryUI library. jQueryUI Tabs is based on jQuery Tabs. The current version of jQuery Tabs is Tabs 3. If I recall correctly (I vaguely remember looking through the source code about a year ago), Tabs 3 is very similar to what's in jQueryUI. The jQueryUI version, of course, respects the Themeroller themes.

I used jQueryUI in one project. It has some nice features, but there are few widgets and it seems to be advancing at a glacial pace (seems like the same six widgets have been there for over a year). Maybe it'll get a second wind. If I recall, one of the things that bothered me is that in many of the widgets, there was no visible difference between the hover state and the click state.

So I would not recommend jQueryUI at this time for its widgets. You may want it for the effects and the draggable/dropable interactions handling.

The widgets in Google's Closure library and the widgets in ExtJS seem more useful, in my opinion.

这篇关于jquery和jquery UI有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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