库 EXT-JS 、 EXT-CORE 、 EXT-GWT 之间有什么区别

发布于 2024-09-09 08:05:32 字数 77 浏览 3 评论 0原文

库 EXT-JS 、 EXT-CORE 、 EXT-GWT 之间有什么区别,因为我曾在 ext-js 上工作过,所以请用外行语言解释一下:)

Whats difference between library EXT-JS , EXT-CORE , EXT-GWT as i have worked on ext-js so please explain me in a layman language :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

半寸时光 2024-09-16 08:05:32

最初它只是 Ext JS。作为 3.x 的一部分,Ext Core 作为一个独立的核心库从 Ext JS 中分离出来,类似于 jQuery,并且 Ext JS 默认将其捆绑在一起。所以如果你只是使用 Ext JS,那么功能上没有区别。但是,您现在可以将 Ext Core 与小部件框架分开使用,例如执行 jQuery 等网页增强类型的内容,或者简单地使用基本库但不使用小部件来滚动您自己的应用程序。另一个很大的区别是,虽然 Ext JS 是双重商业/GPL 许可的,但 Ext Core 是 MIT 许可的(同样,与 jQuery 和其他核心库相当)。

Ext GWT 有点不相关,因为它不直接基于相同的 JS 代码库(它基于 Google 的 GWT Java 框架,该框架输出自己的 JS)。然而,它们之间的关系是,它们都提供相同的小部件,具有相同的外观、感觉和功能质量。他们还努力实现 API 相似性,尽管由于框架之间的差异,真正的 API 奇偶校验是不可能的。 Ext GWT 与 Ext JS 一样获得许可,并且 GWT 方面没有 Ext Core 等效项,您可以使用它获得一切。

Originally it was just Ext JS. As part of 3.x, Ext Core was factored out of Ext JS as a standalone core library, similar to jQuery, and Ext JS bundles it by default. So if you are just using Ext JS, there is no functional difference. However, you can now use Ext Core separately from the widget framework, e.g. to do web page enhancement type stuff like jQuery, or to simply roll your own app using the base lib but without the widgets. The other big difference is that while Ext JS is dual commerical / GPL licensed, Ext Core is MIT licensed (again, to be comparable to jQuery and other core libs).

Ext GWT is sort of unrelated in that it is not directly based on the same JS code base (it is based on Google's GWT Java framework, which outputs its own JS). However, the relationship is that they both offer the same widgets with the same look and feel and functional quality. They also strive for API similarity, although by the nature of the differences in the frameworks, true API parity is not possible. Ext GWT is licensed like Ext JS, and there is no Ext Core equivalent on the GWT side, you get everything with it.

小猫一只 2024-09-16 08:05:32

@bmoeskau 很好的解释。

Ext Core 与 Ext JS
苹果和橙子。 Ext Core 更多的是 JQuery 的替代品,因为当您只需要基本的 DOM 选择器、操作和事件,而不需要小部件时。 ExtJS 在底层使用 Ext Core 进行低级操作。

来自 Sencha 的 Tim 的解释

@bmoeskau nice explanation.

Ext Core vs Ext JS
Apples and oranges. Ext Core is more of a replacement for JQuery, for when you just need basic DOM selectors, manipulations and events, without the widgets. ExtJS uses Ext Core under the covers for the low level operations.

explanation from Tim of Sencha

栖竹 2024-09-16 08:05:32

Ext GWT 不是 Ext JS 的包装器。 Ext GWT 是一个 Java 实现,不使用任何外部 javascript,并充分利用 GWT API。 Ext GWT 确实与 Ext JS 具有相同的外观和风格,并且 API 在许多地方都很相似。在 GWT-EXT 中,组件调用底层 Ext JS 代码,该代码的执行方式与任何其他 Ext JS 应用程序一样,而在 Ext GWT 中,组件是用 Java 编写的。考虑事件,对于 GWT-EXT,事件由 Ext javascript 代码触发和管理,而 Ext GWT 使用 GWT 事件模型。另外,请考虑调试,使用 GWT-EXT 您无法单步执行所有代码,因为它在 javascript 中“在幕后”运行。一旦 Java 代码调用 javascript,您就失去了控制和跟踪执行的能力。使用 Ext GWT,代码采用 Java 编写,因此您可以像调试任何其他 Java 应用程序一样调试您的应用程序。

Ext GWT 和 GWT-EXT 中的小部件数量之间存在差异。随着更多小部件的出现,这种差距正在缩小。另外,请记住,Ext JS 或 GWT-EXT 中没有许多 Ext GWT 功能,例如其查看器和 mvc 代码。 Ext GWT 使用 GWT 1.5 并利用 Java 1.5 使用泛型、枚举、可变参数等。

Ext GWT is not a wrapper over Ext JS. Ext GWT is a Java implementation that does not use any external javascript and fully leverages the GWT API. Ext GWT does share the same look and styles as Ext JS and the API is similar in many places. In GWT-EXT, the components make calls to the underlying Ext JS code which is executing just like any other Ext JS application, where in Ext GWT, the components are written in Java. Consider events, with GWT-EXT, the events are fired and managed by the Ext javascript code, while Ext GWT uses the GWT event model. Also, consider debugging, with GWT-EXT you cannot step through all the code as it runs "under the covers" in javascript. As soon as the Java code calls javascript you lose the ability to control and trace execution. With Ext GWT, the code is in Java, so you can debug your application just like any other Java application.

There is a difference between the number of widgets int Ext GWT and GWT-EXT. This gap is decreasing as many more widgets are on the way. Also, keep in mind there are many Ext GWT features that are not in Ext JS or GWT-EXT, such as its viewer and mvc code. Ext GWT uses GWT 1.5 and takes advantage of Java 1.5 using generics, enumerations, varargs, etc.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文