我在WebStorm 2018.2中有一个项目,其中包含两个JavaScript文件:
只执行console.log(someVar);的变量-
console.log(someVar);
当我尝试执行main.js时,它给我一个引用错误,说明someVar未定义。
someVar
我如何修复这个问题,并让main.js从同一项目中的其余文件导入全局变量,为什么不能自动执行?
https://stackoverflow.com/questions/52461637
相似问题