Sind die jQuery-hide und slideUp Methoden äquivalent?

Tun slideUp('slow') und hide('slow') Ergebnis in die gleiche animation Effekte?

Beispiel-Code:

$(document).ready(function(){
  $("#hide").click(function(){
    $("p").hide('slow');
  });
  $("#show").click(function(){
    $("p").show('slow');
  });
});


<p>If you click on the "Hide" button, I will disappear.</p>
<button id="hide">Hide</button>
<button id="show">Show</button>

InformationsquelleAutor Yosef | 2011-03-13

Schreibe einen Kommentar