Run JavaScript function when the DOM is “ready”?

前端 未结 7 2146
一生所求
一生所求 2020-12-03 10:04

I\'m using a JavaScript upload script that says to run the initialize function as soon as the DOM is ready. I currently have it working just fine with either a call to the f

7条回答
  •  执笔经年
    2020-12-03 10:37

    
    

    You do that so you know all the parsed elements are available in the DOM etc.

提交回复
热议问题