English 中文(简体)
是否有自定义的 jQuery 版本?
原标题:Is there a custom version of jQuery?

我准备在电话加普应用程序中使用 jQuery, 我的问题是 - 是否有jQuery 的定制变量?. 例如, 当你下载 jQuery 界面时 - 您选择将整个 UI 的哪个“ parts” 包含在您重新下载的软件包中。 所以, 在 jQuery 本身是否有类似的东西?

(因为现在我要使用Ajax, JSON的解说和选择者, 也许还有Bind, Live,等等。 对于动画我使用 CSS 3, 所以我不需要 JQuery 的动画材料, 我认为如果我剥去不必要的东西, 整个JS会比用整个 jQuery 要轻得多。 )

Regards, Peter

PS:还有——现在我用JSON2来分析JSON,iScroll来分析卷轴功能, 我唯一要使用JQuery的大事是统一Ajax... 所以如果你有更好的建议,我会很高兴听到的。

问题回答

愿这就是你们所寻求的

http://www.servicastack.net/jqbuildinger/"rel="no follow">http://www.servicstack.net/jqbuildinger/

此选项可以让您从 jQuery 中选择您需要的内容, 从所需列表中建立自定义 lib 。

如果您担心大小, 请使用 < a href=" http:// zeptojs. com" rel = " nofollow" >zepto < / a > 。 它的设计设计相当像jquery- api compatibile (但目前它不会在 ajax 函数上返回 jqXHR, 所以如果您正在做现代 jQuery ajax 的 jQuery 函数, 您将不得不重写一些 。 它是 8K 压缩的( 与 jQuery 的 32K 相比), 并且只有 44K 未压缩( 与 jQuery 的 232K 相比) 。 它利用了现代 Webkit 浏览器功能, 并且没有像 jQuery 那样拥有 IE 所需的浏览器和较旧的浏览器支持 。

Unfortunately both zepto and the customized jQuery variant don t have the parsing JSON functionality. ( $.parseJSON() in jQuery ) Which means that I ll still have to use the JSON2 library as well.

你为什么担心大小(jquery-1.7.2.min.js只有93KB)?

您的问题没有提及应用程序的设计(例如,您只是使用PhoneGap来启动外部网站还是全部自封? ) 。

jQuery 文件将与 App 一起作为 App 的资源发布,直到您离开 App 进行外部链接(链接在应用程序的网络视图控制内打开,而不是本地浏览器(例如 IE、Safari 等) )。





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签