📜  iframe 内容获取 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.902000             🧑  作者: Mango

代码示例1
//Make sure to select 'top' from JS context dropdown menu in chrome devtools console

document.querySelector('iframe class/id').contentWindow.document.querySelector('body').innerHTML