divhtml ="Test Test Test"
divhtml2 ="Test2 Test2 Test2"
function loadstuff(event){
event.preventDefault()
$("#insert_data").append(divhtml);
}
function loadstuff2(event){
$("#insert_data").append(divhtml2);
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.Some Text to make some space, to see the "not scrolling up" effect.
<a href="#" class="btn btn-primary btn-block" id="loadMore" onclick="loadstuff(event)">Load More Results</a>
<a href="#" class="btn btn-primary btn-block" id="loadMore" onclick="loadstuff2(event)">Load More Results 2</a>
<span id="insert_data"></span>
loadstuff()是做什么的?你可以发布它的代码吗? – Orilux
loadstuff()是一个抓取所需数据的函数。 – Stuckfornow