jquery获取iframe里的js事件

jquery获取iframe里的js函数:

$("#myiframe")[0].contentWindow.func();

说明:

iframe的ID为:myiframe

iframe的js函数为:func()