You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
642 B
JavaScript
20 lines
642 B
JavaScript
6 years ago
|
$(function () {
|
||
|
$("#qamainContent").after('<a id="next" href="/guide-use.php/api/faq/tianjin/questions/2">next page?</a>');
|
||
|
|
||
|
$('#qamainContent').infinitescroll({
|
||
|
navSelector : "#next:last",
|
||
|
nextSelector : "a#next:last",
|
||
|
itemSelector : "#qamainContent",
|
||
|
//debug : true,
|
||
|
dataType : 'html',
|
||
|
maxPage : 100,
|
||
|
// prefill : true,
|
||
|
// path: ["/guide-use.php/api/faq/tianjin/questions/"]
|
||
|
path: function(index) {
|
||
|
return "/guide-use.php/api/faq/tianjin/questions/" + index;
|
||
|
},
|
||
|
appendCallback : false
|
||
|
}, function(newElements, data, url) {
|
||
|
$(newElements).appendTo("#qamainContent");
|
||
|
});
|
||
|
});
|