IE7正在显示此错误消息:(除ie7外,没有其他浏览器显示任何错误)
Message: Object doesn't support this property or method
Line: 97
Char: 2
第97行的内容如下:
$('.megamenu').megaMenuCompleteSet({
完整的javascript代码如下:
<script>
$(document).ready(function($){
$('.megamenu').megaMenuCompleteSet({
menu_speed_show : 300, // Time (in milliseconds) to show a drop down
menu_speed_hide : 200, // Time (in milliseconds) to hide a drop down
menu_speed_delay : 200, // Time (in milliseconds) before showing a drop down
menu_effect : 'hover_slide', // Drop down effect, choose between 'hover_fade', 'hover_slide', etc.
menu_click_outside : 1, // Clicks outside the drop down close it (1 = true, 0 = false)
menu_show_onload : 0 // Drop down to show on page load (type the number of the drop down, 0 for none)
});
});
</script>
有人能告诉我第97行出了什么问题吗?
谢谢!
更新已解决:
我使用了最新的版本,我自己修复了它,这都是我的错,我用不同的版本加载了jquery两次,除了IE7之外,它没有在其他浏览器上造成任何麻烦。但是在调试之后,我找到了多个lib加载并删除了,没有错误:)
谢谢大家!
发布于 2012-07-02 02:50:05
您使用的是什么版本的MegaMenu脚本?我可以从他们的变化中看到这一点:
06/23/2012 – Version 2.11
Fixed an issue occurring under IE7 in megamenu.js
发布于 2012-07-02 02:48:11
我不确定这是否是问题所在,但您不需要将JQuery作为一个参数传递,因为它是全局的,所以:
$(document).ready(function($){
应:
$(document).ready(function(){
这可能是一个问题,因为您的JQuery插件似乎是什么工作不正常。
https://stackoverflow.com/questions/11287234
复制相似问题