jQuery - Wait till end of SlideUp()
问题 How can I wait till the end of the jQuery function slideUp() before continuing the script? <script type="text/javascript"> $(document).ready(function() { $("div[class=item]").click(function() { var id = $(this).attr("id"); $("#content").slideUp(); switch(id) { // Applications case "rampro": $("#content").css("text-align", "left"); $("#content").load("inc/pages/rampro.html"); $("#content").slideDown(); break case "diskman": $("#content").css("text-align", "left"); $("#content").load("inc/pages