JQuery UI相对于插件的优缺点 [英] Advantages and Disadvantages of JQuery UI over Plugins

查看:107
本文介绍了JQuery UI相对于插件的优缺点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了大约一周的时间,将Web应用程序从JQuery UI更新为几个插件,例如自动完成和对话框.过去,我使用单独的插件来实现相同的功能,例如autocomplete和jqModal.事实是,我使用JQuery UI的次数越多,我发现其他插件所不存在的问题和复杂性就越多.是的,它是模块化的,允许一个人在核心插件和交互基础上构建,但是似乎缺少一些功能,这些功能只是内置于单独分发的其他插件中的.另外,在我看来,JQuery UI似乎在开发JQuery和我当前的应用程序的基础上又增加了一层,特别是具有自己的主题和复杂的CSS类.

I have spent the last week or so updating my web application to a couple of plugins from JQuery UI, such as autocomplete and dialog. In the past, I have used separate plugins to achieve the same like autocomplete and jqModal. The thing is, the more I play with JQuery UI the more I find issues and complexities that didn't exist in other plugins. Yes, it's modular and allows one to build upon the core plugins and interactions, but it seems to lack features that were just built in to other plugins that are distributed individually. Also, it seems to me that JQuery UI adds another layer over of development JQuery and my current application, especially with its own theming and complicated CSS classes.

因此,我正在考虑回到将单独的插件组合到一个缩小的JS文件中的方式.那是错误的选择路径吗?不能将单个自动完成功能,表单,模式窗口,日期选择器插件等组合在一起吗?

So I am thinking of moving back to just combining separate plugins in to one minified JS file. Is that the wrong path to choose? Is it not okay to combine individual autocomplete, form, modal window, datepicker plugins etc.

推荐答案

Kinda主观,但这是我的看法.做有效的事.而对我来说,最有效的方法就是完全按照您的意愿进行操作,组合插件并使用它们.由于您提到的原因,我试图远离JQuery UI,并且该文件对于我而言太大.

Kinda subjective, but here is my opinion. Do what works. And what works for me is doing exactly what you want to do, combine the plugins and use those. I try to stay away from JQuery UI for your mentioned reason and that the file is too large for my purposes.

我使用Jquery UI的唯一原因是当我的公司正在使用可能在Intranet或其他设备上运行的Business Line应用程序时.

The only reason I'm using Jquery UI is when my company is doing Line of Business apps that would be running on the intranet or something.

这篇关于JQuery UI相对于插件的优缺点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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