问题:
It is possible to toggle the visibility of an element, using the functions .hide()
, .show()
or .toggle()
? 是可能的切换元件的可见性,使用函数.hide()
.show()
或.toggle()
How would you test if an element is visible or hidden? 您将如何测试元素是可见还是隐藏?
解决方案:
参考一: https://stackoom.com/question/kOD/如何检查jQuery中是否隐藏了元素参考二: https://oldbug.net/q/kOD/How-do-I-check-if-an-element-is-hidden-in-jQuery
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4446434