Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
d3.select("body")让我选择当前页面的正文。我将如何选择 iframe 页面的正文?在 jquery 中你会做$('body', frames[frameName].document).
d3.select("body")
$('body', frames[frameName].document)
谢谢!
您可以选择这样的元素的子元素:
d3.selectAll("iframe body");