Handling errors in jQuery(document).ready

前端 未结 5 663
庸人自扰
庸人自扰 2021-02-01 23:31

I\'m developing JS that is used in a web framework, and is frequently mixed in with other developers\' (often error-prone) jQuery code. Unfortunately errors in their jQuery(docu

5条回答
  •  遇见更好的自我
    2021-02-01 23:33

    You could re-reference jQuery before each of your code blocks. Your code would then use the fresh instance of the library, and it would execute. I've tested this in Safari 4.0.3 on OSX.

    
    
        
        
            
           
    
    
    
    
    

    hello world

提交回复
热议问题