iframe操作

# 获取iframe中页面变量

# childWindow

document.getElementById("myframe").contentWindow 

# 获取父窗口变量

window.parent.变量名

# 获取顶层窗口变量  

window.top.变量名

  

posted @ 2020-09-16 19:47  zhangcscc  阅读(157)  评论(0)    收藏  举报