Accessing variables after dynamically loading a script

前端 未结 2 1602
别跟我提以往
别跟我提以往 2021-01-26 12:13

Right up front: this project doesn\'t use JQuery.

We have some third-party JavaScript; it\'s big and hairy and doesn\'t need to be used often, so we\'re dynamically loa

2条回答
  •  梦谈多话
    2021-01-26 12:37

    When you create a '); to have it loaded synchronously. Then you can use it in the following line. Just make sure to do that before the page finishes loading, or your whole document will be overwritten.

提交回复
热议问题