如何利用 jQuery 向 iframe 写入 HTML?

作者:vkvi 来源:ITPOW(原创) 日期:2021-3-20
$("#iframe").contents().find('body').html(html);

注意,我们不能直接 $("#iframe").html(html);

另外,虽然 iframe 是空的,我们也可以用 contents().find()

相关文章