|
|
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(data);
|
|
|
}
|
|
|
});
|
|
|
return;
|
|
|
}
|
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|