Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用JQuery获取列的状态?_Jquery - Fatal编程技术网

如何使用JQuery获取列的状态?

如何使用JQuery获取列的状态?,jquery,Jquery,我是说,有没有办法知道一列是否被隐藏了?我刚学会用手把它们藏起来 $('#tableG td:nth-child('+(index+1)+'), #tableG th:nth-child('+(index+1)+')').hide(); 但现在我需要获得状态,是否有类似于: if($('#tableG th:nth-child('+(index+1)+')').show() == true) { ... } 您希望使用这种表示法: $(element).is(":visible") 因此:

我是说,有没有办法知道一列是否被隐藏了?我刚学会用手把它们藏起来

$('#tableG td:nth-child('+(index+1)+'), #tableG th:nth-child('+(index+1)+')').hide();
但现在我需要获得状态,是否有类似于:

if($('#tableG th:nth-child('+(index+1)+')').show() == true) { ... }

您希望使用这种表示法:

$(element).is(":visible")
因此:


您希望使用这种表示法:

$(element).is(":visible")
因此:

你有

你有