Javascript file organization and design

后端 未结 3 1012
梦如初夏
梦如初夏 2021-02-14 07:28

Really getting into web development and in particular JS so I was wondering what were the best practices in terms of JS file organization and delegation of responsibilities. I a

3条回答
  •  遇见更好的自我
    2021-02-14 08:11

    I would split the classes up into modular JS files, matching your domain. Use YUI compressor or other tools to compress JS files and minify them.

提交回复
热议问题