Trigger event on body load complete js/jquery

前端 未结 10 1810
眼角桃花
眼角桃花 2020-12-05 18:36

I want to trigger one event on page load complete using javascript/jquery.

Is there any way to trigger event or call a simple function once page loading fully comple

10条回答
  •  鱼传尺愫
    2020-12-05 19:02

    $(document).ready(function() {
        // do needed things
    });
    

    This will trigger once the DOM structure is ready.

提交回复
热议问题