Is there any way to call function 'before document ready' in Jquery?

后端 未结 3 1217
滥情空心
滥情空心 2020-12-14 16:01

I want to call function before document get ready, so is there any method in Jquery to do this?

3条回答
  •  再見小時候
    2020-12-14 16:16

    If you simply call a function in the head tag it will execute immediately, before the DOM is even parsed (that's the 'problem' that ready solves).

    
    
        
            
        
        
        
    
    

提交回复
热议问题