Mat*_*ood -3 javascript jquery internet-explorer ietester
我的页面页脚中有一个2小脚本,在IE8中产生脚本错误.IEtester说这个脚本错误是从文档准备好的(但我相信它只是因为它是开始).我使用jQuery,因此它是跨浏览器兼容的.:(
<script type="text/javascript">
$(document).ready(function(){
//flexslider
$(".flexslider").flexslider({
animation : "slide",
slideshow : true,
animationDuration: "750",
slideshowSpeed: 5000,
pauseOnAction: true,
});
//text slider overer
$("#videos li").on({
mouseenter: function() {
$(this).animate({"padding-left": "50px"}, "normal");
},
mouseleave: function() {
$(this).stop(true).animate({"padding-left": "0px"}, "slow");
}});
});
Run Code Online (Sandbox Code Playgroud)
有谁知道如何更正此脚本错误?如果是这样,你能解释为什么首先创建这个错误?
第一个脚本html页面:http: //designobvio.us/fonts/ 第二个脚本html页面:http://designobvio.us/fonts/middle.php
这是一个肯定会绊倒IE8的问题:
$(".flexslider").flexslider({
animation : "slide",
slideshow : true,
animationDuration: "750",
slideshowSpeed: 5000,
pauseOnAction: true, // <-- Trailing comma
});
Run Code Online (Sandbox Code Playgroud)
IE8和更低的仇恨尾随逗号.