jQuery hide() 方法
jQuery 教程
· 2019-03-27 07:43:12
实例
隐藏所有 <p> 元素:
$("button").click(function(){
$("p").hide();
});
$("p").hide();
});
定义和用法
hide() 方法隐藏被选元素。
提示:这与 CSS 属性 display:none 类似。
注释:隐藏的元素不会被完全显示(不再影响页面的布局)。
提示:如需显示隐藏的元素,请查看 show() 方法。
语法
$(selector).hide(speed,easing,callback)
| 参数 | 描述 |
|---|---|
| speed | 可选。规定隐藏效果的速度。 可能的值:
|
| easing | 可选。规定在动画的不同点上元素的速度。默认值为 "swing"。 可能的值:
|
| callback | 可选。hide() 方法执行完之后,要执行的函数。
如需学习更多有关 callback 的内容,请访问我们的 jQuery Callback 这一章。 |
点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html
Understanding Computation
Tom Stuart / O'Reilly Media / 2013-6-3 / USD 39.99
Finally, you can learn computation theory and programming language design in an engaging, practical way. Understanding Computation explains theoretical computer science in a context you'll recognize, ......一起来看看 《Understanding Computation》 这本书的介绍吧!