摘要:
ie下:var doc=document.getElementById("frame1").contentWindow.document;alert(x.getElementById('xxx'));非ie下(标准script)var doc=document.getElementById("frame1").contentDocument;alert(x.getElementById('xxx'));如果就jquery就可以兼容了var doc=$("#frame1").contents();aler 阅读全文