【发布时间】:2012-02-23 13:25:43
【问题描述】:
所以我有
$('.theiframe').load(function(){
var content = $(this.contentDocument).find('pre').html();
}
在 FF、Chrome、IE 8,9 中,iframe 的内容被正确插入到变量内容中......但是当我使用 IE7 时,内容将改为“null”。
加载 iframe 后,如何正确获取 iframe 内容并将其存储到变量中?
【问题讨论】:
标签: javascript jquery html internet-explorer iframe