Architecture of a single-page JavaScript web application?

后端 未结 14 1478
迷失自我
迷失自我 2020-12-07 06:36

How should a complex single-page JS web application be structured on the client-side? Specifically I\'m curious about how to cleanly structure the application in terms of it

14条回答
  •  时光取名叫无心
    2020-12-07 07:22

    MVC architecture of PureMVC/JS is the most elegant IMO. I learned a lot from it. I also found Scalable JavaScript Application Architecture by Nicholas Zakas helpful in researching client side architecture options.

    Two other tips

    1. I've found view, focus, and input management are areas that need special attention in single page web apps
    2. I also found it helpful to abstract away the JS library, leaving door open to change mind on what you use, or mix & match should the need arise.

提交回复
热议问题