【发布时间】:2010-08-17 01:54:24
【问题描述】:
IE6 和 7 在此返回一个 js 错误“预期的标识符、字符串或数字”:
function fadeopacity (){
var opacity = $("#pics_list > li:first").css("opacity");
$("#pics_list > li").hover(
function () {
$(this).stop().animate({
opacity: 1,
}, 300, null)},
->this is the line with an error?
function () {
$(this).stop().animate({
opacity: opacity,
}, 200, null)}
)
}
它会阻止所有页面的脚本, 这在 IE8 中不会发生,当然在其他所有浏览器中也不会发生
【问题讨论】:
标签: javascript internet-explorer-6 numbers