未捕获的异常:ReferenceError:未定义的变量:$ [英] Uncaught exception: ReferenceError: Undefined variable: $

查看:148
本文介绍了未捕获的异常:ReferenceError:未定义的变量:$的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个相同的网站,一个工作正常,另一个工作不太正常,这会导致JavaScript错误.

I have two sites that are identical, one working, the other not quite which is getting a javascript error.

主要功能是用户单击立即保存"按钮的位置,file.js将验证立即保存"功能并允许用户继续购物,继续"按钮位于未保存的设计按钮"后面.购物车位于编辑器上方的隐藏面板"上,继续"按钮取消隐藏名为购物车"的隐藏面板.在此购物车面板上,有一个带脚本prices.js的贝宝表单.

The primary functions are where the user clicks the SAVE NOW button, and the file.js will validate the Save Now function and allow the user to Continue to the shopping cart, the Continue button is behind the "Design Not Saved Button". The shopping cart is on a Hidden Panel above the editor and the Continue button UnHides the Hidden Panel named "cart". On this cart panel there is a paypal form with a script prices.js.

在第一个链接中此方法工作正常,但是在下面列出的第二个链接中,"Throbber Image"只是旋转并且不会验证保存功能,因此允许用户从不继续购物.

This works fine in the first link, but in the second link listed below, the Throbber Image just spins and will not validate the save function, thus allowing the user to Never continue to the shopping cart.

我假设您可以通过访问以上链接轻松找到file.js和Popular_prices.js.

I am assuming that you can easily find the file.js and popular_prices.js by visiting the above links.

我不是最伟大的编码员(自学成才,危险重重),对此我感到很困惑,有人可以建议如何解决它,并用我可能能理解的简单术语来解释它吗?

I am not the greatest coder (self-taught and dangerous) and am very stumped on this, can anyone suggest how to fix this, and explain it in simple terms that I might be able to understand?

提前谢谢!

工作链接: http ://www.budgetsignstore.com/popular-sign-designer.html?320-1c-automotive-magnet-banner-template-green-auto-south-detail

非工作链接: http://www.lowcostsigns.com/banner-editor.html?320-1c-automotive-magnet-banner-template-green-auto-south-detail

这是我遇到的错误:

[1/26/2014 11:07:31 AM] JavaScript - http://www.lowcostsigns.com/low-cost-signs-online-editor.html?320-1c-automotive-magnet-banner-template-green-auto-south-detail
Inline script thread
Uncaught exception: ReferenceError: Undefined variable: $
Error thrown at line 3, column 0 in http://www.lowcostsigns.com/file.js:
    $(document).ready(function () {
[1/26/2014 11:07:31 AM] JavaScript - http://www.lowcostsigns.com/low-cost-signs-online-editor.html?320-1c-automotive-magnet-banner-template-green-auto-south-detail
Inline script thread
Uncaught exception: ReferenceError: Undefined variable: $
Error thrown at line 467, column 0 in http://www.lowcostsigns.com/popular_prices.js:
    $(document).ready(function () {

推荐答案

在第118行:<script type="text/javascript" src="wpscripts/jquery.js"></script>

尝试将其移至第24行上方:<script type="text/javascript" src="wpscripts/jsNavBarFuncs.js"></script>.

Try moving it above line 24: <script type="text/javascript" src="wpscripts/jsNavBarFuncs.js"></script>.

这篇关于未捕获的异常:ReferenceError:未定义的变量:$的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆