📜  hide show jquery - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:47.478000             🧑  作者: Mango

代码示例1
$("#demo").hide();      // sets to display: none
$("#demo").show(200);   // shows hidden elemnt with animation (speed)
$("#demo").toggle();    // toggle between show and hide

$( "#element" ).hide( "slow", function() {  // hide with callback function
console.log( "Animation complete." );
});