Jquery - if page loaded

后端 未结 9 1695
[愿得一人]
[愿得一人] 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:37

    Check this: http://api.jquery.com/ready/

     jQuery(document).ready(function($) {
     // Code using $ as usual goes here.
     });
    

提交回复
热议问题