【问题标题】:grey box AJS.js file conflicking with Jquery灰色框 AJS.js 文件与 Jquery 冲突
【发布时间】:2012-06-16 04:48:24
【问题描述】:

我在我的应用程序中使用 http://orangoo.com/labs/GreyBox 弹出窗口,一切正常,直到我从 http://sorgalla.com/jcarousel 添加 Jcarousal 现在灰盒正在工作,但是当我在灰盒中评论该行时,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 asp.net image slider jcarousel


    【解决方案1】:

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

    $.noConflict():
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-27
      • 2011-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多