jQuery API 返回首页目录 | jQuery API 中英文对照版
hide
hide()

隐藏显示的元素。

返回值:jQuery

示例:

$("p").hide()

HTML 代码:

<p>Hello</p>

结果:

[ <p style="display: none">Hello</p> ]

 
hide()

Hides each of the set of matched elements if they are shown.

Return value: jQuery
Example:

 $("p").hide()  
Before:
 <p>Hello</p>  
Result:
 [ <p style="display: none">Hello</p> ]  

 

相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog