0
$(document).ready(function() {
  // var nice = $("html").niceScroll();  // The document page (body)
  var scroll_var = $(".panel").niceScroll({ 
          cursorborder:"",
          cursorcolor:"#00F",
          boxzoom:true
  });

  scroll_var.scrollend(function(){

  });

});

获取 scrollend 是未定义的。

4

1 回答 1

0

我不确定您是否可以访问该功能。尝试:

$(document).ready(function() {
  $(".panel").niceScroll({ 
          cursorborder:"",
          cursorcolor:"#00F",
          boxzoom:true
  });

  $(".panel").getNiceScroll().scrollend(function(){

  });

});
于 2015-01-21T14:07:02.727 回答