我想隐藏页面中的所有tr元素,其中行不包含文本或不包含文本720Country variant
我到目前为止尝试过,
$("td").parent().hide().end()
.filter(function(){ return /720/.test( $(this).text() ) })
.parent().show()
Run Code Online (Sandbox Code Playgroud)
为什么不直接隐藏行?
$('tr:not(:contains(720):contains("Country variant"))').hide();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
60 次 |
| 最近记录: |