我开始学习Spring boot 2.0,那里是反应式编程和Web流量。
HandlerFilterFunction与RouterFunction与HandlerFunction与@RestController之间有什么区别?
当我使用RouterFunction或RestController时,我仍然具有非阻塞API?
例如
$(window).scroll(function() {
var url;
// Checks if products are currently being loaded
if (window.pagination_loading) {
return;
}
// Grabs the URL from the "next page" button
url = $('.pagination .next_page').attr('href')
// Chckes if you're n height from the bottom
if (url && $(window).scrollTop() > $(document).height() - $(window).height() - 50) {
// Variable to know that you are currently loading products
window.pagination_loading = true;
// Text while loading
$('.pagination').text('');
// Run the script
return $.getScript(url).always(function() {
return window.pagination_loading = false;
});
}
});