<iframe id="ids" src="http://www.baidu.com"></iframe> var srcs = document.getElementById('ids').src; alert(srcs);
document.getElementsByTagName('iframe')[0].contentWindow.location.href
window.frames[0].window.location.href试试
87,910
社区成员
224,616
社区内容
加载中
试试用AI创作助手写篇文章吧