Namespace a dynamically loaded javascript file's contents

后端 未结 2 1460
时光取名叫无心
时光取名叫无心 2021-02-08 13:22

Is it possible to namespace a JavaScript file inserted dynamically?

I know that I can dynamically include a JavaScript file by creating a script tag and in

2条回答
  •  面向向阳花
    2021-02-08 13:41

    If you mean to add a namespace to everything that is defined in that file while loading it dynamically, without modifying the file itself, the answer is no.

提交回复
热议问题