var ifr = document.getElementById('ifr');var win = ifr.window || ifr.contentWindow;win.a(); // 调用iframe中的a函数