(Javascript) How to convert a file/bunch of code into a variable?

前端 未结 0 1582
你的背包
你的背包 2021-01-14 11:38

Lets say I have a helloworld.js and a test.js file. In the test.js file, I want to make a const:

const helloworldFile = *contents of helloworld.js* file.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题