更新时间:2023-01-05 19:12:36
隐藏trs
时jQuery中存在问题.这是当前的解决方法,直到他们决定做出类似的事情为止.
There is a problem in jQuery when hiding trs
. This is the current workaround until they do something similar in the core, if they decide to.
row.find("td").fadeOut(1000, function(){ $(this).parent().remove();});
这基本上将tds
隐藏在行中,而不是实际行中.然后将其从DOM中删除.我相信它可以在所有浏览器中使用.如果需要,您可以专门针对IE.
This basically hides the tds
in the row, instead of the actual row. Then it removes the row from the DOM. It works in all browsers I believe. You could target IE specifically though if needed.