摘要
MVC(Model-View-Controller)是 Web 应用开发中常用到的一种设计模式,通常,由 Model 和 Controller 在服务器端生成 View,浏览器端只是简单地对 View 进行显示。在这种实现方式下,几乎所有的处理都集中在了服务器端,浏览器端的空闲处理能力被白白闲置。同时,频繁传送包含大量数据的页面,对网络带宽也有很高的要求,这已经不能满足用户对 Web 应用越来越高的交互需求。为此,本论文基于 JavaScript、XMLHttp、DOM 和 Template Toolkit等几项技术,提出了以浏览器为主的 MVC 设计模式的一种新实现,降低了服务器的处理负荷,减轻了网络负担,有效地解决了传统方式的不足,同时也有利于传统 GUI 应用开发人员掌握和使用。
MVC(Model-View-Controller) is a traditional design pattern, which is commonly used in the Web application development. Usually, browser simply answers for the display of View generated by Model and Controller on server side. According to this traditional implementation of MVC, most work is so concentrated on server that the idle capability on client side is left unused wastefully, and frequent transmission of pages containing many data requires a higher bandwidth. Aiming at these drawbacks, this paper introduces a novel implementation of MVC mainly working on browser by using JavaScfipt, XMLHttp, DOM and Template Toolkit technology etc, which alleviates the server's burden and reduces network traffic greatly. As a result, this new method effectively solves the disadvantages of traditional implementation, and is easy for traditional GUI Web application developer to master and use.
出处
《计算机科学》
CSCD
北大核心
2006年第5期136-138,共3页
Computer Science
基金
国家信息产业部电子发展基金(信部运[2004])