js&jquery操作页面中iframe内的dom元素
pren 发布于 2021-11-15
$("#iframe1").contents().find("#news_text").html(""); iframe1:页面中的iframe的ID; news_text:iframe内需要被操作的元素的ID; JS代码如下: document.getElementById('...
阅读(2939)评论(0)赞 (4)
pren 发布于 2021-11-15
$("#iframe1").contents().find("#news_text").html(""); iframe1:页面中的iframe的ID; news_text:iframe内需要被操作的元素的ID; JS代码如下: document.getElementById('...
阅读(2939)评论(0)赞 (4)