jQuery equivalent of body onLoad

前端 未结 6 810
梦毁少年i
梦毁少年i 2020-12-29 04:37

Is it allowed to use along with jQuery\'s document.ready() handlers? I can\'t find a way to achieve the same funct

6条回答
  •  长发绾君心
    2020-12-29 05:08

    $(window).load(myfunc) is what you're looking for. If you're working with the load event of an iframe, you can replace window with the iframe element/selector.

提交回复
热议问题