Dynamically Importing JavaScript

后端 未结 3 963
悲哀的现实
悲哀的现实 2021-01-13 16:52

What is the correct way to dynamically import JavaScript (.js) files into a parent JavaScript code, please?

I am using the following code, but it seems not correct:<

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 17:32

    You can't use variables and functions defined in the external JS file immediatly after inserting the

提交回复
热议问题