有效的jQuery脚本未在生产模式下加载

有效的jQuery脚本未在生产模式下加载

本文介绍了有效的jQuery脚本未在生产模式下加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站在生产模式下遇到了一些麻烦.从jQuery脚本中获取一些错误,因此无法加载.以为jQuery.noConflict();可以解决,但我失败了!现在已经尝试了很多事情,因此我愿意接受有关解决方案或调试的任何建议.

Having some troubles with my site in production mode. Getting some errors from the jQuery scripts so it's not loading. Thought jQuery.noConflict(); could solve it, but it failed me! Been trying so many things now so I'm open for any suggestions to solutions or debugging.

出现我的错误:

Uncaught controls.js requires including script.aculo.us' effects.js library
/#about:30Uncaught TypeError: Object [object Object] has no method 'cycle'
/#about:12Uncaught TypeError: Object [object Object] has no method 'cycle'

解决这个问题的人会获得一颗金星!谢谢;(

The one who solves it gets a gold star! Thank you ;(

推荐答案

您需要先解决第一个错误,然后再处理后续错误(因为它们可能来自级联故障).根据您未捕获的异常,您有一个名为"controls.js"的脚本,该脚本要求将script.aculo.us库加载到页面上才能正常工作.从此处 Script.aculo.us 下载该库,然后将其放入您的Web目录中,并在控件之前添加它. js加载:

You'll need to fix the first error before tackling subsequent errors (since they may come from a cascading failure). According your your uncaught exception, you have a script called "controls.js" that requires the script.aculo.us library to be loaded on the page in order to work. Download the library from here Script.aculo.us put it into your web directory, and include it BEFORE controls.js loads:

<script type="text/javascript" src="/location/to/scriptaculous.js"></script>

这篇关于有效的jQuery脚本未在生产模式下加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 17:40