在哪里可以获得jQuery Mobile的独立部分? [英] Where can i get the standalone parts of jQuery Mobile?

查看:84
本文介绍了在哪里可以获得jQuery Mobile的独立部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个地方(网站),我可以在 jQuery Mobile 的独立部分使用吗?我对单选按钮感兴趣。

Is there a place (website) where I can the the standalone parts of jQuery Mobile? I'm interested in the radiobutton.

我不想使用jQuery Mobile,因为我已经在使用jQTouch。

I don't want to use jQuery Mobile as I'm already using jQTouch.

推荐答案

jQM现已解除连结:

jQM is now decoupled:

  • http://jquerymobile.com/blog/2011/08/03/jquery-mobile-beta-2-released/

小工具:现在已解除连结,方便灵活的版本

我们已经想要将所有的窗口小部件从页面插件中解耦,一个
很长时间,我们很高兴地宣布,我们终于降到了
的变化。那么,解耦的意思是什么呢?好吧,
个别小部件和实用程序总是被分解成
单独的脚本文件。然而,页面插件负责
处理自动初始化在
中找到的所有官方插件在页面创建时的标记。这种情况下,不可能
删除插件,你不需要,而不会导致错误,一般
设置了一个坏的先例,以后的小部件添加。

We’ve wanted to decouple all our widgets from the page plugin for a long time now and we’re happy to announce that we finally landed this change. So what exactly does decoupled mean anyway? Well, the individual widgets and utilities have always been broken out into separate script files. However, the page plugin was responsible for handling the auto-initialization all of the official plugins found in the markup at page creation. This situation made it impossible to remove plugins you don’t need without causing errors, and generally set a bad precedent for future widget additions.

现在,jQuery Mobile库中几乎所有的UI小部件都是
完全解耦,因此如果不需要
特定项目,可以简单地删除它们。这个改变允许你通过只包括一组特定的小部件或
特性你需要的,除了少数所需的核心文件,大大减少了
库的大小。
虽然我们还计划做更多的解耦和清除,下面的
文件现在解耦,可以安全地从make文件
中删除,然后再执行自定义构建:

Now, pretty much all the UI widgets in the jQuery Mobile library are completely decoupled so they can simply be deleted if not needed for a particular project. This change allows you to dramatically reduce the size of the library by only including the specific set of widgets or features you need, in addition to the handful of required, core files. While we still plan to do more decoupling and cleanup, the following files are now decoupled and can safely be removed from the make file before you do a custom build:


  • page header / content / footer

  • 可折叠

  • controlgroup

  • fieldcontain

  • fixheaderfooter

  • 按钮

  • checkboxradio

  • 选择

  • 滑块

  • textinput

  • 链接主题
  • $ b
  • listview

  • navbar

  • 网格

  • page header/content/footer
  • collapsible
  • controlgroup
  • fieldcontain
  • fixheaderfooter
  • button
  • checkboxradio
  • select
  • slider
  • textinput
  • links theming
  • listview
  • navbar
  • grid

我们将使用依赖关系图,因为一些小部件依赖其他人
来工作。例如,按钮标记插件被许多
上面的小部件调用,因此它只能被排除,但如果你不使用
任何依赖按钮的小部件。

We will work on a dependency map because a few widgets rely on others to work. For example, the button markup plugin is called by many of the widgets above, so it can only be excluded but if you’re not using any of the widgets that depend on buttons.

我们仍然在制定我们的映射插件
依赖关系的建议,并进一步解耦。最终,这将
显示在下载构建工具中,敬请关注!

We’re still working out our recommendations for mapping plugin dependencies and decoupling things even further. Ultimately, this will be surfaced in a download builder tool, so stay tuned!

您可以转到他们的GIT回复并只需下载您想要的内容:

You can head over to their GIT Repo and just download what you want:

  • https://github.com/jquery/jquery-mobile/tree/master/js

这篇关于在哪里可以获得jQuery Mobile的独立部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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