大家好:我需要在 iframe 中插入一个 html 字符串,如下所示:
……
var html = "<html><head><title>Titolo</title></head><body><p>body</p></body></html>"
jQuery('#popolaIframe').click(function() {
parent.$("#indexIframe")[0].documentElement.innerHTML = html;
});
有没有办法做到这一点?