简体   繁体   English

jQuery Slideshow在IE9中不起作用

[英]jQuery Slideshow not working in IE9

I have encountered a very strange problem. 我遇到了一个非常奇怪的问题。 The jquery slideshow in the below webpage is not working in IE9. 以下网页中的jquery幻灯片在IE9中不起作用。 It won't even work on reload. 它甚至无法在重新加载时工作。 However, if i open the developer tools and refresh the page, it will work. 但是,如果我打开开发人员工具并刷新页面,它将起作用。 Can anyone help me troubleshoot this. 谁能帮我解决这个问题。

All the code for the gallery is in scripts/gallery.js 画廊的所有代码都在scripts / gallery.js中

Fixed It: It worked again when i removed "console.log()' from the code. Thanks everyone. 修复它:当我从代码中删除“ console.log()”时,它再次起作用,谢谢大家。

Your gallery script has console log statements in it which causes IE to bork if the dev tools aren't opened (IE9). 您的库脚本中包含控制台日志语句,如果未打开开发工具(IE9),则会导致IE崩溃。 You're also missing a css file ("NetworkError: 404 Not Found - http://blacktoyota.foxqa.com.au/css/RegisterWizard.css?v=1.0 ") 你还缺少一个CSS文件(“NetworkError:404未找到- http://blacktoyota.foxqa.com.au/css/RegisterWizard.css?v=1.0 ”)

See also console.log.apply not working in IE9 and Does IE9 support console.log, and is it a real function? 另请参见console.log.apply在IE9中 不起作用IE9 是否支持console.log,这是一个真正的功能吗?

Try commenting out line 108 of gallery.js 尝试注释掉gallery.js的第108行

IE doesn't support the console.log function IE不支持console.log功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM