Alternative to <body onload=“init ();”>

前端 未结 5 1273
Happy的楠姐
Happy的楠姐 2021-02-04 04:51

I\'m trying to fix an old script written for me. I need it to run without . I\'d like to run the function from inside the script wit

5条回答
  •  情话喂你
    2021-02-04 05:31

    
    

    Or, if you are using jQuery:

    $(function() {
        // Your code here
    });
    

提交回复
热议问题