iframe 中获得当前的 document 对象

var iframe = parent.document.getElementById('frame-id').contentWindow.document;
var nodes = iframe.querySelectorAll('a[class="xxx"]')
welcome come back
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!