jQuery循环未捕获语法错误:输入意外结束


jQuery Cycle Uncaught SyntaxError: Unexpected end of input

我正在使用jQuery循环创建一些库,在本地一切都很好。然而,在服务器上,我收到了以下两条错误消息:

未捕获的语法错误:输入jquery循环意外结束。js:1

未捕获类型错误:对象[Object Object]没有方法循环

包括jQuery和Cycle:

<script src="<?php bloginfo('template_url'); ?>/js/jquery-latest.js" type="text/javascript"></script>
<script src="<?php bloginfo('template_url'); ?>/js/jquery-cycle.js" type="text/javascript"></script>

我的jQuery循环函数:

    <script>
      $(function() {
        $('#mini-gallery').cycle({
          speed: 800,
          timeout: '6500',
          pause: 'true',
          cleartypeNoBg: 'false',
          containerResize:0,
          slideExpr: '.testimonial-mini-item'       
        });
       });
     </script>

为什么我在实时服务器上收到这些错误消息?

更新

我已经改变了我加载Cycle插件的方式:

   <script src="http://malsup.github.io/jquery.cycle.all.js"></script>

现在这个插件工作得很好。有什么想法为什么现在这样有效吗?这与我使用的是服务器IP地址而不是域有关吗?

我会仔细检查以确保jquery-cycle.js文件中没有丢失的括号或导致页面加载失败的内容。

我已经将加载Cycle插件的方式更改为:

 <script src="http://malsup.github.io/jquery.cycle.all.js"></script>

现在这个插件工作得很好。有什么想法为什么现在这样有效吗?这与我使用的是服务器IP地址而不是域有关吗?