gpt4 book ai didi

Javascript 与 IE8 - 预期的标识符、字符串或数字

转载 作者:可可西里 更新时间:2023-11-01 02:15:27 25 4
gpt4 key购买 nike

不,这不是一个额外的逗号。

这是给我带来问题的片段。

$(document).ready(function(){   
$("div#slider").easySlider({
auto: false,
continuous: true,
nextId: "nextBtn",
prevId: "prevBtn"
});

$("div#slider-banner").easySlider({
auto: true,
continuous: true,
controlsShow: false
});
// <---------------------------------- Line 14
$("div#slider-photos").easySlider({
auto: true,
continuous: true,
controlsShow: false
});

$("#marquee").marquee({
scrollSpeed: 25,
pauseSpeed: 2000,
showSpeed: 850

});
});

错误详情

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET CLR 1.1.4322; Tablet PC 2.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Wed, 6 Apr 2011 15:20:42 UTC


Message: Expected identifier, string or number
Line: 14
Char: 5
Code: 0

这是在随机安装 IE8 时发生的,有什么想法吗?

最佳答案

尝试将所有对象属性放在(双)引号中,如下所示:

$("div#slider").easySlider({
'auto': false,
'continuous': true,
'nextId': "nextBtn",
'prevId': "prevBtn"
});

关于Javascript 与 IE8 - 预期的标识符、字符串或数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5584249/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com