Should I split my javascript into multiple files?

前端 未结 5 1179
感情败类
感情败类 2020-12-30 19:20

I\'m used to working with Java in which (as we know) each object is defined in its own file (generally speaking). I like this. I think it makes code easier to work with and

5条回答
  •  悲哀的现实
    2020-12-30 19:24

    It does not really matter. If you use the same JavaScript in multiple files, it can surely be good to have a file with the JavaScript to fetch from. So you just need to update the script from one place.

提交回复
热议问题