Can you use multiple .JS files when developing a complex Javascript application?

前端 未结 4 1499
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 02:03

Coming from a C# background where every class is (best practices) stored in its own individual file, it makes development quite clean. I\'ve never written anything complex in Ja

4条回答
  •  攒了一身酷
    2021-02-01 02:45

    you could consider using requirejs - a very nice libray to split your javascript to modules. it also provide a tool that you can "combine" all modules to a single file.

提交回复
热议问题