要使用document.querySelector('iframe')进入到最后一层的iframe
继续 contentDocument或contentWindow啊
试着 使用document.querySelectorAll()方法来定位多层的iframe,该方法可以返回一个NodeList,其中包含所有符合查询条件的元素,可以通过遍历NodeList来定位多层的iframe。