添加Javascript后页面不加载 [英] Page Not Loading After Adding Javascript

查看:137
本文介绍了添加Javascript后页面不加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是相关网页:

http://portal.envisionforce.com/cart.php?gid=20



此JavaScript代码已添加到页眉:

 < script type ='text / javascript'src ='http://www.envisionforce.com/wp-content /themes/Minos/data/combined4963.js?ver=1.1'></script> 

如果不存在,页面会正确加载,但导航的下拉菜单不会显示,工作。什么需要改变,使两个工作?

解决方案

你缺少该脚本依赖的jQuery UI插件。

 < script type ='text / rocketscript'data-rocketsrc ='wp-内容/主题/米诺斯/ JS / jQuery的ui4963.js版本= 1.1' >?< /脚本> 

如果您没有通过FireBug或Google Chrome使用Firefox,请立即安装Google Chrome。然后,您可以按 F12 访问开发人员工具,该开发人员工具具有一个JavaScript控制台,可显示您页面上发生的错误。对于调试非常有用。


Here's the page in question:

http://portal.envisionforce.com/cart.php?gid=20

This javascript code has been added to the page header:

<script type='text/javascript' src='http://www.envisionforce.com/wp-content/themes/Minos/data/combined4963.js?ver=1.1'></script>

When that isn't there, the page loads correctly but the drop down menus for the navigation don't work. What needs to be changed to make both work?

解决方案

You are missing the jQuery UI plugin which that script depends upon. Add this script ABOVE the line you added.

<script type='text/rocketscript' data-rocketsrc='wp-content/themes/Minos/js/jquery-ui4963.js?ver=1.1'></script>

If you aren't using Firefox with FireBug or Google Chrome, install Google Chrome now. Then you can press F12 to access the developer tools, which has a JavaScript console that shows you errors that occur on your page. Invaluable for debugging.

这篇关于添加Javascript后页面不加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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