获取iframe中body的内容方法 var inhtml = document.getElementById('jj').contentWindow.document.body.innerHTML; 在IE 9下测试好用,采用兼容模式也好用,火狐测试通过,其他浏览器不清楚。