jQuery Mobile与常规jQuery [英] jQuery Mobile vs regular jQuery

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

问题描述

我读了这个主题 jQuery vs jQuery Mobile vs jQuery UI?

但仍然感到困惑. jQuery mobile是否可以与桌面jQuery互换?

but still confused. Is jQuery mobile interchangeable with desktop jQuery?

jQuery mobile可以用于桌面开发吗? 和 您可以使用常规jQuery进行移动开发吗?

Can jQuery mobile be used for desktop development? and Can you use regular jQuery for mobile development?

除了更好的触摸支持外,jQuery Mobile还具有哪些其他优势?

Other than better touch support , what other advantages does jQuery Mobile offer?

推荐答案

让我帮您解释一下.

jQuery是jQuery Mobile和jQueryUI的基本基础,有点像地下室是房子的其余部分. jQuery本身有许多很棒的工具来操纵网页并增加页面的交互性,还有许多其他仅靠HTML和CSS不能实现的奇特功能.这是他们的网站,可以单独使用jQuery完成所有不同的操作: http://api.jquery.com/.

jQuery is the basic foundation for jQuery Mobile and jQueryUI, sort of like the basement is for the rest of a house. jQuery itself has many great tools to manipulate a webpage and add interactivity to a page, as well as many other fancy features that can't be accomplished by HTML and CSS alone. Here is their site for all of the different things that can be done with jQuery alone: http://api.jquery.com/.

jQueryUI构建在jQuery之上,就像房子的第一层是在地下室之上构建一样. jQuery UI包含一系列预构建的交互式小部件,可以轻松地集成到网站中.请记住,所有jQuery UI都仅使用jQuery,JavaScript和CSS构建.可以(而且非常容易)仅使用jQuery自己复制这些小部件.这些家伙足够好为您编写它们. :)这是一个您可以在其中查看其所有小部件的站点: http://jqueryui.com/demos/.

jQueryUI is built on top of jQuery, much like how the first level of a house is built on top of a basement. jQuery UI contains a series of pre-built, interactive widgets which can be easily integrated into a website. Keep in mind that all of jQuery UI was built using simply jQuery, JavaScript, and CSS. It is possible (and really easy) to replicate these widgets yourself using only jQuery. These guys were just nice enough to write them for you. :) Here is a site where you can check out all of their widgets: http://jqueryui.com/demos/.

最后,我们来介绍jQuery Mobile.这也是建立在jQuery之上,而不是建立在jQuery UI之上.使用我以前的类比,您可以将其视为车库.它不在一楼的顶层,而是位于它的旁边,其目的与房屋的主要居住空间不同. jQuery Mobile就像是jQuery和jQuery UI的轻量级更改版本的组合,并针对移动设备进行了优化.本质上,它是代码和小部件的框架,可将类似于应用程序的功能和小部件添加到网页上以供移动使用.您可以在此处演示jQuery Mobile: http://jquerymobile.com/demos/1.1. 0-rc.2/,或者您可以使用以下拖放工具快速构建自己的jQuery Mobile页面: http://codiqa.com/.

Last we come to jQuery Mobile. This is also built on top of jQuery, but not on top of jQuery UI. Using my previous analogies, you can think of it as a garage. It's not on top of a first floor, but it sits right beside it, with a different purpose than the main living space of a house. jQuery Mobile is like a combination of jQuery and a lightweight, altered version of jQuery UI, optimized for use on mobile devices. In essence, it is a framework of code and widgets that add application-like features and widgets to a webpage for mobile use. You can demo jQuery Mobile right here: http://jquerymobile.com/demos/1.1.0-rc.2/, or you can quickly build your own jQuery Mobile page using this drag and drop tool: http://codiqa.com/.

希望有助于区分它们.

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

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