在一个应用程序中一起使用ExtJs和JQuery? [英] Use ExtJs and JQuery together in one application?

查看:50
本文介绍了在一个应用程序中一起使用ExtJs和JQuery?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个很大的ExtJS(仍然是ExtJs 2)应用程序,它在Java EE服务器上提供类似Windows资源管理器的功能。
我们现在评估实施新功能;我们可以将这个功能基于jQuery插件。

we have a big ExtJS (still ExtJs 2) application, which provides windows explorer like functionality on a Java EE server. We now evaluate implementing a new functionality; we could base this functionality on a jQuery plug in.

是否建议在一个应用程序中使用jQuery和ExtJs?
或者我是否需要处理发生的副作用?

Is it recommended to use jQuery and ExtJs in one application? Or will I have to deal with side effects occurring?

推荐答案

您不必处理任何副作用。我做这个时遇到的唯一问题是,如果我试图操作Extjs依赖的元素。只要确保当你开始使用jQuery操作时,你正在一个extjs不打算搞砸的div里面工作。执行此操作的最佳方法是从Ext.Component继承,然后在它提供的div内操作。 Ext在这个div中没有​​做任何事情所以你应该没事。如果需要,您也可以使用调整大小功能,但这不是必需的。

You will not have to deal with any side effect. The only problems I ever ran into when I did this is if I tried to operate on elements that Extjs relied on being left alone. Just make sure that when you start operating using jQuery that you're working inside a div that extjs doesn't plan to mess with. The best way to do this is to inherit from Ext.Component and then operate inside the div it provides. Ext doesn't do anything inside this div so you should be ok. You can also tap into the resize functionality if you need to, though this is not really necessary.

这篇关于在一个应用程序中一起使用ExtJs和JQuery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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