gpt4 book ai didi

javascript - 缺少 : after property id

转载 作者:行者123 更新时间:2023-12-02 20:16:30 25 4
gpt4 key购买 nike

为什么以下代码会导致 Firebug 在 $('#galleria').galleria({ 行上报告错误?

      $('#galleria').galleria({
dataSource: data,
width:930,
height:575,
transition: 'fade',
carousel: 'true' ,
carouselSpeed: 1200 ,
showCounter :'false',
showImagenav : 'false',
showInfo : 'false',
imageCrop : 'true',
maxScaleRatio: 1,


extend: function() {
this.bind(Galleria.LOADFINISH, function(e) {
$(e.imageTarget).css('cursor','pointer').click(this.proxy(function(e) {
e.preventDefault(); // removes the garbage
$.fancybox({

$('#galleria').galleria({
width: 500,
height: 500
});

});
}))
});
}
});

最佳答案

$.fancybox({

$('#galleria').galleria({
width: 500,
height: 500
});

});

语法上无效。

关于javascript - 缺少 : after property id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6229158/

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