计算机与现代化

• 网络与通信 •    下一篇

基于MVVM架构的移动Web前端展示方案

  

  1. 1.广西大学计算机与电子信息学院,广西南宁530004;
      2.广西职业技术学院计算机技术与电子信息工程系,广西南宁530226
  • 收稿日期:2014-08-08 出版日期:2014-11-27 发布日期:2014-12-10
  • 作者简介: 封宇(1982-),男,广西梧州人,广西大学计算机与电子信息学院硕士研究生,广西职业技术学院计算机技术与电子信息工程系讲师,研究方向:软件工程,移动应用; 陈宁江(1975-),男,广西南宁人,教授,博士,研究方向:软件工程,网络分布式计算机。
  • 基金资助:
     国家自然科学基金资助项目(61063012); 广西自然科学基金资助项目(2012GXNSFAA053222);广西高校优秀人才资助计划([2011]40); 广西科学研究与技术开发计划项目(桂科软13180015)

Scheme of Mobile Web Front-end Display Based on MVVM Framework

  1. 1. College of Computer and Electronic Information, Guangxi University, Nanning 530004, China;
      2. Department of Computer Technology and Electronic Information Engineering,
      Guangxi Vocational Technical College, Nanning 530226, China
  • Received:2014-08-08 Online:2014-11-27 Published:2014-12-10

摘要:  为解决移动终端用户个性化丰富体验的问题,本文分析当前基于MVC和MVP的移动Web开发框架,针对这2种模式在移动终端应用时展示逻辑没有完成与业务逻辑分离的问题,提出引入MVVM架构解决展示逻辑与业务逻辑完成分离的问题,为用户在移动终端上提供个性化体验。实例表明,使用基于MVVM架构设计的移动终端应用系统,能有效地实现展示逻辑与业务逻辑完成分离。

关键词: 移动终端, MVVM, 个性化, 架构, 移动Web

Abstract: To solve the problems of the mobile terminal user personalization rich experience, based on the MVC and MVP mobile Web development framework are analyzed, according to problems of show logic and business logic when using the MVC and the MVP to develop the mobile terminal applications, the MVVM architecture is proposed, and it can provide the personalized experience on the mobile terminals. Examples shows that using MVVM based architecture to design the mobile terminal applications can effectively achieve the complete separation of show logic and business logic.

Key words:  , mobile; MVVM; personalization; framework; mobile Web