简体   繁体   English

如何仅使用jQuery-mobile的表单元素

[英]How to use only the form elements from jQuery-mobile

I don't need the most parts of jQuery-mobile, but the form elements are awesome, so I want to use them. 我不需要jQuery-mobile的大部分内容,但是表单元素很棒,因此我想使用它们。 But jQuery-mobile adds a lot of classes and div to the page on startup. 但是jQuery-mobile在启动时会在页面上添加很多类和div。 Is there a way to change this behavior? 有没有办法改变这种行为?

check the following link. 检查以下链接。 It just look alike jQueryMobile's idea jQuery Form Transform 看起来就像jQueryMobile的想法jQuery Form Transform

Currently you will not be able to use just a part of the jquery mobile framework.But with the release of jQuery Mobile version 1.0 you should be able to do so. 当前您将无法仅使用jquery mobile框架的一部分,但是随着jQuery Mobile 1.0版本的发布,您应该可以使用。

From the jQuery mobile website 从jQuery移动网站

Download builder: In the works 下载生成器:正在进行中

Now that we've decoupled most of the UI widgets, we've set the stage for there to be a download builder. 既然我们已经分离了大多数UI小部件,那么我们就为建立一个下载构建器奠定了基础。 This will let you build a custom version of jQuery Mobile to only include the parts you need. 这将使您构建自定义版本的jQuery Mobile,使其仅包含所需的部分。 For example, you could just use the core files to add Ajax-based navigation with pushState and leverage some of the touch events and other utilities with a very lightweight build (roughly 10k). 例如,您可以只使用核心文件通过pushState添加基于Ajax的导航,并以非常轻便的构建(大约10k)利用某些触摸事件和其他实用程序。 Or, you could add in specific UI widgets like form elements, listviews, etc. to create an optimized build. 或者,您可以添加特定的UI小部件,例如表单元素,列表视图等,以创建优化的版本。 We're aiming to have a download builder tool launch as part of 1.0 final in some form. 我们旨在以某种形式将下载生成器工具作为1.0 final的一部分发布。 We're working on a dependency map now for all the plugins to support this tool. 我们正在为所有支持此工具的插件制作一个依赖关系图。

Reference link 参考链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM