If you need to introduce another dependency js file in a js file, you only need to import the following code into the first js file:
The code copy is as follows:
var s=document.createElement("script");
s.src="/script/Map.js";
document.getElementsByTagName( "HEAD")[0].appendChild(s);
The red part is the path to the js file to which it depends.