你有这样的代码在你的myfunctionNew.js文件
$("#datiProdotto").load("prodotto.asp?myPNum=" + showScheda, function() {
$('#slider').show();
$('#slider').nivoSlider({
effect: 'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
slices: 1,
animSpeed: 500, //Slide transition speed
pauseTime: 4000,
startSlide: 0, //Set starting Slide (0 index)
directionNav: false, //Next & Prev
directionNavHide: true, //Only show on hover
controlNav: true, //1,2,3...
controlNavThumbs: false, //Use thumbnails for Control Nav
/*controlNavThumbsFromRel:false, //Use image rel for thumbs
controlNavThumbsSearch: '.jpg', //Replace this with...
controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
keyboardNav:true, //Use left & right arrows
pauseOnHover:true, //Stop animation while hovering
manualAdvance:false, //Force manual transitions
captionOpacity:0.8, //Universal caption opacity
beforeChange: function(){},
afterChange: function(){},
slideshowEnd: function(){} //Triggers after all slides have been shown*/
});
});
您需要从该行的末尾删除尾随逗号。
controlNavThumbs: false,
这是我遇到的第一个错误。之后可能会有更多。