📜  jQuery hide()

📅  最后修改于: 2020-11-25 02:34:59             🧑  作者: Mango

jQuery hide()

jQuery hide()方法用于隐藏选定的元素。

句法:

$(selector).hide();
$(selector).hide(speed, callback);
$(selector).hide(speed, easing, callback);

速度:这是一个可选参数。它指定延迟的速度。其可能的值是慢,快和毫秒。

缓动:指定用于过渡的缓动函数。

callback:这也是一个可选参数。它指定了hide()效果完成后要调用的函数。

让我们以一个示例来看一下jQuery隐藏效果.

输出:

This is a little poem:
Twinkle, twinkle, little star
How I wonder what you are
Up above the world so high
Like a diamond in the sky
Twinkle, twinkle little star
How I wonder what you are