我有一个 id 为“test”的 div。它里面是一个没有 id 的 iframe。我需要访问此 iframe 的正文内容。如何使用 JS/Jquery 做到这一点?
最佳答案
像这样访问它:
$('#test>iframe').contents.find('body') // This will get you body tag
关于javascript - 访问div内没有id的iframe(div有id),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13190548/