当前位置:网站首页>【iframe父页面调用子页面的方法】踩坑:获取元素的时候需要用 `[x]`是关键,不能用`.eq(x)`否则获取不到。
【iframe父页面调用子页面的方法】踩坑:获取元素的时候需要用 `[x]`是关键,不能用`.eq(x)`否则获取不到。
2022-08-11 01:23:00 【常安cc】
获取元素的时候需要用
[x]
是关键,不能用.eq(x)
否则获取不到。
var iframe = $('body', parent.document).find('#LAY_app_body .layadmin-tabsbody-item').find('iframe')[x];
console.log(iframe);
iframe.contentWindow.test();//test是子页面的方法
边栏推荐
- Web APIs BOM - A Comprehensive Case of Operating Browsers
- 容器技术真的是环境管理的救星吗?
- [ASM] The relationship between the role of the bytecode operation ClassWriter COMPUTE_FRAMES and visitMaxs
- 22、库存服务
- Mysql database installation and configuration detailed tutorial
- 如何做到构建的提速,再提速
- MySQL advanced query
- Exception: try catch finally throws throw
- Still using Xshell?You are out, recommend a more modern terminal connection tool, easy to use!
- Distributed. Performance optimization
猜你喜欢
postgresql参数意义
Pico 4更多参数曝光:Pancake+彩色透视,还有Pro版本
C#-委托的详细用法
力扣------用栈操作构建数组
Web APIs BOM - A Comprehensive Case of Operating Browsers
apache+PHP+MySQL+word press, page error when installing word press?
R language multiple linear regression, ARIMA analysis of the impact of different candidates in the United States on the economic GDP time series
Construction inspection, no rules and no square
数据分析面试手册《统计篇》
还在用 Xshell?你 out 了,推荐一个更现代的终端连接工具,好用到爆!
随机推荐
16. Sum of the nearest three numbers
Two-dimensional array combat project -------- "Minesweeper Game"
[GXYCTF2019]BabySQli
Kunpeng compilation and debugging and basic knowledge of native development tools
两日总结九
C# string与stream的相互转换
成功解决TypeError: can‘t multiply sequence by non-int of type ‘float‘
Update chromedriver driver programming skills │ selenium
C#-委托的详细用法
迭代器和生成器
#yyds干货盘点#【愚公系列】2022年08月 Go教学课程 008-数据类型之整型
22/8/9 Collection of Greedy Problems
Still using Xshell?You are out, recommend a more modern terminal connection tool, easy to use!
Word set before the title page
paddle2.3和torch1.8在SentenceBert上的性能对比
循环单词
分库分表ShardingSphere-JDBC笔记整理
dump_stack ()
15 DOM 扩展
J9 Digital Theory: DAO governance is more like an ecological process: governance is native to the network and continues to evolve