jQuery vs jQuery Mobile vs jQuery UI? [英] jQuery vs jQuery Mobile vs jQuery UI?

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

问题描述

我是网络开发的新手,那里有太多的j *东西。我想知道这些框架之间有什么区别?

I'm new to web development and there are just too many j* stuff out there. I wonder what are the differences between these frameworks?

此外,为什么人们会谈论使用jQuery创建插件?它不应该是一个JavaScript库,使您的网页更具互动性吗?

Moreover, why do people talk a lot about making a plugin using jQuery? Isn't it supposed to be a JavaScript library to make your web page more interactive?

推荐答案

jQuery是一个JavaScript框架,旨在允许开发人员从字面上少写,多做,你要问的三种不同的口味,做不同的事情。

jQuery is a JavaScript framework designed to allow developers to literally "write less, do more", the 3 different flavours you are asking about, do very different things.

首先,jQuery是包含框架主要功能的核心库,所以如果你想让元素淡入,你可以在你的页面上包含jQuery,然后在你的一个元素上调用 fadeIn()函数。

First up jQuery is the core library which contains the main functionality of the framework, so if you want to make an element fade in, you would include jQuery on your page, and then call the fadeIn() function on one of your elements.

jQuery UI是用用户界面创建的要记住的元素和交互通常需要大量的代码才能进行操作。因此,库包含诸如拖放元素的能力以及从这些交互中获取有用信息的功能。但同时关注外观和感觉,因此有各种各样的主题可用于在这个库中设置这些强大的UI元素的样式。

jQuery UI was created with user-interface elements and interactions in mind that generally require a lot of code to manipulate otherwise. So the library contains things like the ability to drag and drop elements, and get useful information from those interactions. But at the same time there is a focus on the look and feel, therefore there are all sorts of themes available to style these powerful UI elements in this library.

jQuery mobile是一个基于jQuery构建的强大框架,专为移动平台而设计 - 在拖拽之类的所有功能需要重新考虑触摸屏之后,核心功能如悬停这些根本不存在于移动。

jQuery mobile is a powerful framework built on top of jQuery and designed specifically for mobile platforms - after all the functionality of things like drag and drop needs to be rethought for touch screens, as does core functionality such as "hovering" which simply doesn't exist on mobile.

所有框架都可以用来增强网站的可用性,并真正为开发人员节省大量时间。要了解有关该框架的更多信息,请访问学习jQuery - 这是一个很好的入门资源。

All together the frameworks can be used to enhance the usability of a site, and really save developers a lot of time. To learn more about the framework visit Learning jQuery - a great resource for getting started.

插件允许Web开发人员解决他们的问题并将其抽象为单个功能和独立的块(通常在单独的文件中)。然后,他们可以与其他人分享,以便他们可以做同样的事情。因此,如果有人为他们制作的网站构建了一个图库功能,那么制作一个插件可以让他们轻松地重复使用代码,并帮助其他人面对同样的问题。

Plugins allow web developers to take the solution to their problem and abstract it into a single functional and independent block (usually in a separate file). They can then share that with everyone else so that they can do the same. So if someone builds a gallery feature for a site they made, making a plugin would allow them to easily reuse the code, and help others facing the same problem.

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

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