ExtJS 4 官方指南:MVC架构 简体中文版
ExtJS 4 官方指南:MVC架构
富客户端应用程序一直很难编写,维护整理也很难进行。随着功能的增加和开发者的增多,程序很快变得难以控制。Ext JS 4 拥有一套新的应用结构,能够帮助你有效组织程序,并减少编写代码数量。
Large client side applications have always been hard to write, hard to organize and hard to maintain. They tend to quickly grow out of control as you add more functionality and developers to a project. Ext JS 4 comes with a new application architecture that not only organizes your code but reduces the amount you have to write.
我们的应用结构首次引用了 MVC 模式。现在市面上存在许多 MVC 构架,彼此或多或少都有一些差别。现在介绍我们是如何定义 MVC 的:
Our application architecture follows an MVC-like pattern with Models and Controllers being introduced for the first time. There are many MVC architectures, most of which are slightly different from one another. Here's how we define ours:
模型 (Model) 是一个包含了一些字段和字段下数据的集合(例如用户模型包含了用户名和密码字段)。模型了解怎样处理数据包,能和其他模型建立连接。模型的工作模式和 Ext JS 3 下的 Record 类很相似,通常配合 Stores 向网格 (grid) 和其他组件提供数据。 视图 (View) 任何组件都属于视图——网格、树和面板都属于视图的范畴。
控制器 (Controllers) 控制器是放置所有保持应用正常运行的代码的地方——渲染视图、初始化模型或者其他的逻辑成分。
Model is a collection of fields and their data (e.g. a User model with username and password fields). Models know how to persist themselves through the data package, and can be linked to other models through associations. Models work a lot like the Ext JS 3 Record class, and are normally used with to present data into grids and other components
View is any type of component - grids, trees and panels are all views. Controllers are special places to put all of the code that makes your app work - whether that's rendering views, instantiating Models, or any other app logic. 在本教程中我们会创建一个简单的用户数据管理系统。教程结束后你会学习到怎样使用新的 Ext JS 4 应用构架创建应用程序。
ExtJS 4 官方手册:应用架构设计 02 简体中文版_...我们采用了 MVC 架构,并将它应用到一个比较复杂的... ExtJS 4 官方指南:MVC架... ExtJS 4 官方指南...
ExtJS 4 官方手册:应用架构设计 03 简体中文版_...(一、二) 多拉风格的应用程序,并开始将 MVC 架构... ExtJS 4 官方指南翻译:... ExtJS 4 实用工具类...
ExtJS 4 官方指南:类系统 简体中文版_IT/计算机_专业资料。ExtJS 4 官方指南:类系统 简体中文版Ext JS 4 类系统在历史上第一次,Ext JS 的经历了一个在...
ExtJS 4 官方手册:应用架构设计 01 简体中文版_IT/计算机_专业资料。ExtJS 4 官方手册 简体中文版Extjs4 应用架构设计(一) 应用架构设计(应用的可扩展性、可...
ExtJS 4 官方指南:数据 Data 简体中文版_IT/计算机_专业资料。ExtJS 4 官方...{ title:'Ext JS 4.0 MVC Architecture', body:'It\'s a great Idea to...
适用extjs 4或者5版本 1.框架结构 2. 新功能mvc 运用Extjs4\5 学习指南富...目录为 ext 官方提供的例子程序,其中可能包涵 php 的代码,错误信息可以 暂时不...
应用 MVC 结构,所有的类都在 app/文件夹下,依次包含子文件夹来命名你的 ... ExtJS 4 官方指南:MVC架... 27页 2下载券 extjs mvc architecture 21页 ...
EXTJS4之MVC架构_计算机软件及应用_IT/计算机_专业资料。EXTJS4之MVC架构基础... Extjs4.0中文学习手册、... 140页 4下载券 ExtJS 4 官方指南:MVC架......
SSH框架开发实例 06.ExtJs MVC框架搭建_计算机软件...tree application HTML 欢迎访问我们的官方网站 www.... 安全乘机指南 如何选择安全的航班 正确使用机上氧气...
EXTJS的MVC开发模式_IT/计算机_专业资料。今日推荐 157份文档 ... ExtJS 4 官方指南:MVC架... 27页 2下载券 利用MVC模式开发Java应用... ...
热门文档