在body里打开一个iframe页面,想要调取打开的这个页面里的函数:html
$('iframe')[0].contentWindow.sonFn(canshu);
[0]:好比在index.html页面里,打开了n多个iframe页面,那[0]是获取的第一个iframe页面。函数
sonFn:是在这个iframe这个页面里的函数spa
canshu:能够往子页面里面传参数code
启主要做用的函数:contentWindowhtm