0
“slider.refresh()”不适用于光滑块中的单击事件。文档具有此刷新功能,但出现此错误光滑块刷新不起作用
未捕获TypeError:slider.refresh不是HTMLDivElement上的函数 。
$(document).ready(function() {
var slider = $(".content-slider").lightSlider({
loop:false,
keyPress:true,
verticalHeight:500,
item:1,
auto:false,
adaptiveHeight: true,
enableTouch: true,
enableDrag: false,
freeMove:true,
});
// Save note show div
$('.save-note').click(function() {
$(this).closest('.col-sm-12').
find('.note-section').removeClass('hide').fadeIn('slow');
slider.refresh();
});
});
在此先感谢