我需要找到添加到iframe中的DOM元素。为了确定找到添加的元素,我正在使用此插件

我所做的一切都来自chrome ext。

arrive.js
body>iframe1>iframe.ssueContentIframe2>#SmartReportTabContent1>loopElements>link

像这样:

document.arrive(".ssueContentIframe", function() {
    console.log('.ssueContentIframe arrived', this);//works

this.arrive('#SmartReportTabContent1', function(){
console.log('arrive 2');//not working
});
});


这是怎么了有人可以帮我吗?

最佳答案

要在iframe中检查元素,您需要包括arrive.js库和在iframe中调用arrive()函数的脚本。

关于javascript - 如何使用“arrive.js”查找到达“iFrame”内部的元素,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39753836/

10-09 17:05