2016-09-27 55 views

回答

1

使用jQuery例如通過

$("#myList").scroll(function(){console.log("This is scroll");}) 

與用於下面的HTML(相關的是,收聽者應附加到由在rootAttributes傳遞(該ID沒有被設置爲所述UL這樣id屬性標識的元素,但UL的父元素

<ul data-id="c-list" data-bind="ojComponent: {component: 'ojListView', 
          data: dataSource, 
          selectionMode: 'none', 
          rootAttributes: {id: 'myList'} }"> 
</ul>