摘要
现有的Ajax和MVC结合方案都存在着增加系统结构和实现的复杂性、带来额外的工作和降低运行效率等缺点,不适合小型甚至中等规模的应用程序。为了解决这个问题,提出了一种改进的基于Ajax和MVC的架构。并以网上聊天室为例,实现了基于Ajax和MVC架构的Web应用。研究结果表明,该架构适合中小型Web项目的开发,达到了减轻服务器的负担、提高系统的响应速度、提供流畅的视觉浏览等效果。
All the existing schemes combining Ajax with MVC are not suitable for small or medium-scale applications. The complexity of system is increased, additional work is brought and the operational efficiency is reduced. Aiming at solving this problem, an improved structure based on Ajax and MVC was discussed. Finally, the Intemet chatting room was illustrated as an example to carry out the Web application based on the Ajax MVC structure. The results indicate that it is suitable for small and medium-sized Web projects, and the burden on the server can be reduced the system response speed is improved and smooth visual browsing is proved.
出处
《机电工程》
CAS
2010年第4期90-92,共3页
Journal of Mechanical & Electrical Engineering
基金
浙江省科技厅攻关项目(2008C11010)
关键词
AJAX
MVC
异步请求
聊天室
Ajax
model-view-controller(MVC)
asynchronism request
chat room