iframe取值

mac2022-06-30  20

1 var doc = document.all ? document.frames[0].document : document.getElementById("iframe").contentDocument; 2 console.log(doc.body.innerHTML); 3 console.log(doc.getElementById("box").innerHTML); 1 var iframe = document.getElementById("xx"); 2 var doc = document.all ? iframe.document : iframe.contentDocument

 

 

 

转载于:https://www.cnblogs.com/qzsonline/archive/2012/10/16/2725357.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)