[英]Is there an property value named invisible?
Instead using of: 而是使用:
if ( ! $('#XX').is(':visible) )
Is there a value called invisible
? 是否有一个名为invisible
的值? I tried that one , but doesn't work. 我尝试了那个,但不起作用。
Thanks ! 谢谢 !
There is a .not()
function
, that does the opposite to
有一个.is()
:
.not()
函数
,与
.is()
相反:
.not(':visible')
':hidden'
if ($('#XX').is(':hidden))
See the jQuery doc for :hidden
. 请参阅jQuery doc for :hidden
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.