Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがページの一番下までスクロールしたときに、データベースからページに新しいコンテンツをロードしようとしています。これはどのように達成されますか?jquery の ajax と php を組み合わせて考えてみましたが、わかりません。
私が推測するプラグインは必要ありません。このためのjQueryコード
$(window).scroll(function () { if ($(window).scrollTop() >= $(document).height() - $(window).height() - 10) { //Add jQuery ajax code here to fetch data from server/database and append more elements etc } });