加载完页面再执行操作

$("#ifram").attr("src","url");
$("#ifram").load(
    function()
    {
        $("#ifram")[0].contentWindow.function(p1, p2);
    }
);

 

posted @ 2013-08-05 09:51  Mo  阅读(91)  评论(0编辑  收藏  举报