currency.js
424 Bytes
var $ = require('jquery');
var page = 0;
$(window).scroll(function() {
if ($(window).scrollTop() + $(window).height() > $('body').height() - 1) {
page++;
$.ajax({
type: 'POST',
url: '/home/currencyDetail',
dataType: 'html',
data: {
page: page
},
success: function(data) {
console.log(1);
}
});
return;
}
});