Javascript 无法在iframe中触发tablesorter

Javascript 无法在iframe中触发tablesorter,javascript,jquery,iframe,tablesorter,Javascript,Jquery,Iframe,Tablesorter,我试图从iframe中删除tablesorter中的一行,并且我成功地删除了该行,但是我无法触发更新tablesorter,这就是我正在尝试的 $(document).ready(function () { var uid = ". json_encode($_POST['uid']) . "; var access = " . json_encode($_POST['access']) . "; if(access == '1') { top.$('#cont

我试图从iframe中删除tablesorter中的一行,并且我成功地删除了该行,但是我无法触发更新tablesorter,这就是我正在尝试的

$(document).ready(function () {
    var uid = ". json_encode($_POST['uid']) . ";
    var access = " . json_encode($_POST['access']) . ";
    if(access == '1') {
     top.$('#content').contents().find('#orgs tr[data-uid='+uid+']').remove();
      top.$('#content').contents().find('#orgs').trigger('update');
      console.log(top.$('#content').contents().find('#orgs'));
    }
    top.$.fancybox.close();
});

我不明白我是否能够删除一行以及它显示的console.log中的行,但为什么不触发update,但我尝试在与此
$('#orgs')相同的iframe中触发。trigger('update')
然后它就可以工作了

访问父窗口时不要使用jQuery的
.contents()

if (access == '1') {
  top.$('#content').find('#orgs tr[data-uid='+uid+']').remove();
  top.$('#content').find('#orgs').trigger('update');
  console.log(top.$('#content').find('#orgs'));
}

访问父窗口时不要使用jQuery的
.contents()

if (access == '1') {
  top.$('#content').find('#orgs tr[data-uid='+uid+']').remove();
  top.$('#content').find('#orgs').trigger('update');
  console.log(top.$('#content').find('#orgs'));
}

谢谢,但是不行,这样它甚至不会删除行,
控制台
会返回什么吗?我在本地测试了一个类似的代码(在Firefox中),它对我有效。在控制台中,它返回长度为0的对象,没有任何错误,但它不会删除行,只是为了更清楚,我告诉大家,我在fancybox中单击行时调用此编辑页,如果它确实重要,谢谢,但它不起作用,这样它甚至不删除行
控制台
是否返回任何内容?我在本地测试了一个类似的代码(在Firefox中),它为我工作。在控制台中,它返回长度为0的对象,没有任何错误,但它不会删除行,只是为了更清楚,我告诉大家,如果行有问题,我会在fancybox中单击该行调用该编辑页面