javascript 获取 iframe 内部元素的方法
·
在js文件中,想获取页面中某个iframe内部的子元素,最原生的方法如下:
document.getElementById("iframeId").contentWindow.document.getElementById("iframe里面元素的id")
更多推荐
在js文件中,想获取页面中某个iframe内部的子元素,最原生的方法如下:
document.getElementById("iframeId").contentWindow.document.getElementById("iframe里面元素的id")
更多推荐
所有评论(0)