使用 extjs 的优缺点是什么? [英] What are pros and cons of using extjs?

查看:25
本文介绍了使用 extjs 的优缺点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的一个项目中,有人推荐我使用 extjs.我对 extjs 知之甚少.我已经使用 jQuery 完成了我的所有项目.我知道你们很多人都非常了解 extjs.

请告诉我使用 extjs 的利弊?

解决方案

以下是 ExtJS 的一些主要优缺点:

优点

  1. ExtJS 就像简单标签、文本框按钮到复杂网格、拖放面板等小部件的超集.它还提供了用于远程调用远程服务器方法的演示.

  2. 它有很好的文档,包括教程、示例和用户社区.

  3. 活跃且目前采用最多的 javascript RIA 框架

  4. 良好的代码质量/可读性

  5. 令人惊叹的一组小部件,满足我们可能想要的一切.看起来很快,每个版本都带来了新的改进.

缺点

  1. 占用空间 - 库大小为 500 KB(使用 mod_gzip 可以减少到 150KB).网页主页的加载时间会很长.

  2. CSS – 很容易迷路.很难找到正确的班级名字

  3. HTML – 充满 div 和过于复杂的生成代码.难即使使用 FireBug 也能进行调试.

  4. 经过修改的 GPL 3.0 许可.开源应用程序免费,但为商业闭源应用付费.

  5. 使用 ExtJs 使我们相信 GUI 会类似于桌面和富有.定制不容易实现.

  6. 加载即使是简单的东西也需要几行代码在纯 html 或 jQuery 中更简单.

  7. 调试不是很容易.只有 GWT 有更好的调试javascript 框架之间的托管模式.

  8. 用户不可能为某个页面添加书签.自从对象是通过DOM操作渲染的,页面不能被搜索引擎收录

  9. 需要非常有经验的开发人员.

  10. 我不知道如何在整个显示不为 EXT 的情况下使用它.我更喜欢可以集成到我们已有的东西中的东西.

参考:ExtJs - 优点和缺点

希望这会有所帮助.

In one of my project someone has recommended me to use extjs. I know very little about extjs. I have done my all the project using jQuery. I know many of you know about extjs very well.

please tell me the pros and cons of using extjs?

解决方案

Following are some of the major pros and cons of ExtJS:

Pros

  1. ExtJS is like a superset of the widgets like simple label, textBox buttons to complex grids, drag-drop panel s etc. It also provides demo for remoting to invoke remote server methods.

  2. It has quite good documentation with tutorials, samples and user community.

  3. Active and currently most adopted javascript RIA framework

  4. Good code quality/readability

  5. Amazing set of widgets, does everything we could possibly want. Seems quick, every version brings new improvements.

Cons

  1. Footprint - The library is 500 KB in size (using mod_gzip could be reduced to 150KB). Loading time would is high for home page on web.

  2. CSS – very easy to get lost. It is difficult to find correct class names

  3. HTML – full of divs and overly complex generated code. Difficult to debug even with FireBug.

  4. Modified GPL 3.0 licensed. Free for open source applications but paid for commercial closed source applications.

  5. Using ExtJs leads us to believe that the GUI would kind of desktop and rich. Customization is not easily achievable.

  6. Loading even simple things requires few lines of coding which is simpler in plain html or jQuery.

  7. Debugging is not very easy. Only GWT has bit better debugging in hosted mode among javascript frameworks.

  8. It is not possible for the user to bookmark a certain page . Since the objects are rendered by DOM manipulation, page can not be indexed by search engines

  9. Need quite experienced developer.

  10. I'm not sure how to use this without the entire display being EXT. I would prefer something that could integrate into what we already have.

Reference: ExtJs - The Pros and Cons

Hope this helps.

这篇关于使用 extjs 的优缺点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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