Kar*_*arl 0 jquery internet-explorer-7
在IE 7中,jQuery Tools似乎没有初始化.IE 7表示在第240行,即角色3上存在问题.
这是我的代码:
<script>
$(document).ready(function() {
$("#slidertabs").jtTabs("#slider-content > p", {
effect: 'fade',
fadeOutSpeed: "slow",
current: 'active',
rotate: true,
}).slideshow({autoplay: true, interval: 6000, clickable: false}); // <-- line 240
});
</script>
Run Code Online (Sandbox Code Playgroud)
当最终列表项后面有逗号时,IE7不喜欢它,就像在第240行之前的行上的JavaScript对象中一样.
从最后一项删除逗号,它应该没问题.
更新的代码:
<script>
$(document).ready(function() {
$("#slidertabs").jtTabs("#slider-content > p", {
effect: 'fade',
fadeOutSpeed: "slow",
current: 'active',
rotate: true // removed comma from here
}).slideshow({autoplay: true, interval: 6000, clickable: false}); // <-- line 240
});
</script>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
259 次 |
| 最近记录: |