Jquery - if page loaded

后端 未结 9 1694
[愿得一人]
[愿得一人] 2021-02-05 15:57

Is there any trick how to start a function in javascript, which starts when the page is completely loaded?

9条回答
  •  一个人的身影
    2021-02-05 16:29

    If you really want your Javascript to run once 'everything' all your HTML is loaded, you can with

    window.onload = function(){
       // Do stuff
    }

提交回复
热议问题