相关疑难解决方法(0)

jQuery:在子窗口上接收文件ready()

我正在尝试在我打开的子窗口加载并准备好其文档时收到通知.这似乎不起作用:

win = window.open(href, 'test', 'width=300, height=400');
win.focus();
$(win.document).ready(function() {
           // Ok, the function will reach here but if I try to manipulate the
           // DOM it doesn't work unless I use breakpoints
           $(this).contents().find("...").doStuff(); // nothing happens
    });
Run Code Online (Sandbox Code Playgroud)

我需要做什么?

jquery dom window ready

12
推荐指数
2
解决办法
3万
查看次数

标签 统计

dom ×1

jquery ×1

ready ×1

window ×1