This is my file structure
-main.js
-SomeDir
-fileA.js
-fileB.js
What should I do if I want to load (inside main.js
) every file in someDir
without specifying the file names -
something like: require(./someDir/*.js)
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…