Struts2插件 - Dojo或jQuery或...? [英] Struts2 plugins - Dojo or jQuery or...?

查看:102
本文介绍了Struts2插件 - Dojo或jQuery或...?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Apache Struts已经从Struts 2.1.x中弃用Dojo插件,我正在考虑将所有内容更改为jQuery。我特别注意到大小的差异(170kb vs 19kb - 这样的东西)。我用IE浏览器处理dojo脚本时遇到麻烦,这是否也与jQuery(当用户长时间使用应用程序,脚本停止运行)时呢?



我的应用程序中有很多dojo标签,我使用他们的大部分属性。



有没有人有这样的经验?有什么问题?有什么好处?有没有人有什么更好的想法,哪些插件包含在Struts2?





任何答案都会很棒!谢谢。

解决方案

对我来说,将标记从dojo更改为jquery已经很好。在我的(小)项目中,只有少数人物必须改变。



我最大的问题是,树标记在jquery中不存在,所以我保留了旧的dojo标签,该标签在dojo之间产生了很多冲突和jquery。所以我建议您一次更改所有标签到jquery,以避免奇怪的行为。


Since Apache Struts has deprecated Dojo plugin from Struts 2.1.x I am thinking to change everything to jQuery. I especially noticed the difference in sizes (170kb vs 19kb - something like that). I had troubles with IE browser with handling dojo scripts, is this happening also with jQuery (when user is working with the application for a long time, script stops running)?

I have a lot of dojo tags in my applications, and I use most of theirs attributes.

Has anyone had any experience doing that? What were the problems? What were the benefits? Downsides?

Does anyone has any better ideas of which plugin to include with Struts2?

Any answer will be great! Thanks.

解决方案

It has worked fine for me to change the tags from dojo to jquery. In my (small)project only a few attibutes had to be changed.

The biggest problem for me has been that the tree tag doesn´t exist in jquery so I kept the old dojo tags for that part which has generated alot of conflicts between dojo and jquery. So I recommend that you should change ALL tags at once to jquery to avoid strange behavior.

这篇关于Struts2插件 - Dojo或jQuery或...?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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