创建单页应用程序的最佳实践是什么?
一般来说,在创建单页应用程序(完全依赖 ajax)时,不要忘记或考虑的最重要的事情是什么?或者MVC有什么具体的考虑吗?
What are the most important things not to forget or consider when creating a single page app(completely ajax depended) in general? Or any specific consideration on MVC?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
对于复杂的项目,请考虑 js 库 - Backbone http://documentcloud.github.com/backbone/
For complex projects consider js library - Backbone http://documentcloud.github.com/backbone/
为此,我们使用 ExtJs。
ExtJs 通过 JSON 从 MVC 控制器获取所有必需的数据。
We are using ExtJs for that.
ExtJs get all required data from MVC Controllers via JSON.
Steven Sanderson 在单页应用程序上有一系列很好的博客文章:
我还会推荐他的Knockout 框架。
Steven Sanderson has a good series of blog posts on single page apps:
I would also recommend his Knockout framework.
DURANDAL Startkit 是一个很好的开始方式。它具有 MVVM 模式,我们可以将它与 Visual Studio 一起使用。
此外,Stephen Walther 发表了一篇关于安全问题的好文章。 http://stephenwalther.com/archive/2013 /03/05/单页应用程序的安全问题
DURANDAL Startkit is a good way to start. Its has MVVM pattern and we can use it with Visual Studio.
Also, Stephen Walther make a good post about security issues. http://stephenwalther.com/archive/2013/03/05/security-issues-with-single-page-apps