MVC模式在Web应用中的一种实现  被引量:11

A MVC Pattern Implementation on Web Application

在线阅读下载全文

作  者:谢珩[1] 吴多益[1] 卢显良[1] 宋杰[1] 

机构地区:[1]电子科技大学计算机科学与工程学院,成都610054

出  处:《计算机科学》2006年第5期136-138,共3页Computer Science

基  金:国家信息产业部电子发展基金(信部运[2004])

摘  要: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.

关 键 词:MVC模式 JavaScript XMLHttp DOM Template toolkit Web应用 

分 类 号:TP393[自动化与计算机技术—计算机应用技术] TP311.52[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象