灰色框 AJS.js文件与 Jquery 混淆



我在我的应用程序中使用 http://orangoo.com/labs/GreyBox 弹出窗口,一切都工作正常,直到我从 http://sorgalla.com/jcarousel 中添加 Jcarousal现在 greybox 正在工作,但当我在 greybox 中注释该行时,jcarousal 不起作用,正如您在代码中看到的那样,然后 jcarousal 不起作用。如何避免这种冲突

<link href="Script/greybox/gb_styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    var GB_ROOT_DIR = '<%= this.ResolveClientUrl("../Script/greybox/")%>';
</script>   
<%--<script type="text/javascript" src='<%= this.ResolveClientUrl("../Script/greybox/AJS.js") %>'></script>--%>**// if i comment this line then jcarousal works**
<script type="text/javascript" src='<%= this.ResolveClientUrl("../Script/greybox/AJS_fx.js") %>'></script>
<script type="text/javascript" src='<%= this.ResolveClientUrl("../Script/greybox/gb_scripts.js") %>'></script>

尝试在包含 jQuery 之后但在调用其他 JavaScript 库之前放置此行。

$.noConflict():

最新更新