简体   繁体   English

jQuery Struts2 jQuery Easy UI

[英]jquery Struts2 jquery-easy-ui

I'm using struts2 jquery plugin and also using jquery easy ui. 我正在使用struts2 jquery插件,还使用jquery easy ui。 The plugin to work assumes that I include the tag: <sj:head jqueryui="true" defaultLoadingText="Please wait ..."/> at the top of the jsp page 要工作的插件假定我包含标签:jsp页面顶部的<sj:head jqueryui="true" defaultLoadingText="Please wait ..."/>

the problem is that when I include this tag the javascript that depands on jquery easy ui stops to work. 问题是,当我包含此标签时,在jquery easy ui上展开的javascript停止工作。 My question is: Is there is anyway to use both jquery plugin and jquery easy ui without problems? 我的问题是:是否仍然可以同时使用jquery插件和jquery easy ui?

have you tried jquery.noConflict ? 你尝试过jquery.noConflict吗?

<script type="text/javascript" src="plugin.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
  $.noConflict();
  // Code that uses other library's $ can follow here.
</script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM