Waiting for dynamically loaded script

前端 未结 6 1759
忘了有多久
忘了有多久 2020-11-30 08:28

In my page body, I need to insert this code as the result of an AJAX call:

    

Loading jQuery

6条回答
  •  情书的邮戳
    2020-11-30 09:08

    Add an ID to your script file so you can query it.

    
    

    Then add a load listener to it in JavaScript

    
    

提交回复
热议问题