This works on showing a single loading GIF while the php page pulls data from a mySQL database. How do I load more pages and have separate Loading GIFs assigned?
<script>
$(document).ready(function () {
$(document).ajaxStart(function () {
$("#wait").css("display", "block");
});
$(document).ajaxComplete(function () {
$("#wait").css("display", "none");
});
$("#Content").load("sent.php"); //How do I load multiple pages like these and have dedicated 'Loading GIFs'?
});
</script>
您可以在Content中创建多个div,并在这些div中加载php页面。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.