首页 | 本学科首页   官方微博 | 高级检索  
     

MVC模式在Web应用中的一种实现
引用本文:谢珩,吴多益,卢最良,宋杰.MVC模式在Web应用中的一种实现[J].计算机科学,2006,33(5):136-138.
作者姓名:谢珩  吴多益  卢最良  宋杰
作者单位:电子科技大学计算机科学与工程学院,成都610054
摘    要:MVC(Model-View-Controller)是Web应用开发中常用到的一种设计模式。通常,由Model和Controller在服务器端生成View,浏览器端只是简单地对View进行显示。在这种实现方式下,几乎所有的处理都集中在了服务器端,浏览嚣端的空闲处理能力被白白闲置。同时,频繁传送包含大量数据的页面,对网络带宽也有很高的要求,这已经不能满足用户对Web应用越来越高的交互需求。为此,本论文基于JavaScript、XMLHttp、DOM和Template Toolkit等几项技术,提出了以浏览器为主的MVC设计模式的一种新实现,降低了服务器的处理负荷,减轻了网络负担,有效地解决了传统方式的不足,同时也有利于传统GUI应用开发人员掌握和使用。

关 键 词:MVC模式  Web应用

A MVC Pattern Implementation on Web Application
XIE Heng,WU Duo-Yi,LU Xian-Liang,SONG Jie.A MVC Pattern Implementation on Web Application[J].Computer Science,2006,33(5):136-138.
Authors:XIE Heng  WU Duo-Yi  LU Xian-Liang  SONG Jie
Affiliation:School of Computer Science and Engineering , UEST of China, Chengdu 610054
Abstract:MVC(Model-View-Controller)is a traditional design pattern,which is commonly used in the Web applica- tion development.Usually,browser simply answers for the display of View generated by Model and Controller on serv- er side.According to this traditional implementation of MVC,most work is so concentrated on server that the idle capa- bility 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 brow- ser by using JavaScript,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 im- plementation,and is easy for traditional GUI Web application developer to master and use.
Keywords:JavaScript  XMLHttp  DOM  Template toolkit
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号