We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javascript
new Scrollload({ container: $('.commentMain')[0], content: $('.contentWrap')[0], isInitLock: true, loadMore: function(sl) { $.ajax({ url:"/news/newsMoreComments", data: { newsId: newsId, start: start += 10, pageSize: pageSize }, success: function(res){ var data = res.data if (!data) { // 没有数据的时候需要调用noMoreData sl.noMoreData() return } $(sl.contentDom).append(template(data)) sl.unLock() }, error: function(){ sl.throwException() } }) } })
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
javascript
The text was updated successfully, but these errors were encountered: