文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > ExtJS 4 官方指南:MVC架构 简体中文版
侵权投诉

ExtJS 4 官方指南:MVC架构 简体中文版

ExtJS 4 官方指南:MVC架构 简体中文版

</html>

2 在app.js中创建应用程序Creating the application in app.js 每个 Ext JS 4 应用都从一个 类的示例开始。Application 包含了应用的全局设置(比如应用的名字)以及对应用中使用的模型、视图和控制器的引用。Application 还应包含一个 launch 函数,launch 函数会在所有资源都载入成功后运行。

Every Ext JS 4 application starts with an instance of class. The Application contains global settings for your application (such as the app's name), as well as maintains references to all of the models, views and controllers used by the app. An

Application also contains a launch function, which is run automatically when everything is loaded.

现在一起创建一个简单的账号管理器用来帮助我们管理账号。首先我们需要为应用挑选一个全局命名空间。所有的 Ext JS 4 应用程序都应该只使用一个全局变量用来嵌入应用中所有需要的类。通常我们使用一个简短的名字,这里我们使用“AM”:

Let's create a simple Account Manager app that will help us manage User accounts. First we need to pick a global namespace for this application. All Ext JS 4 applications should only use a single global variable, with all of the application's classes nested inside it. Usually we want a short global variable so in this case we're going to use "AM": Ext.application({

name:'AM',

appFolder:'app',

launch:function(){

Ext.create('Ext.container.Viewport',{

layout:'fit',

items:[

{

xtype:'panel',

title:'Users',

html :'List of users will go here'

}

]

});

上一页第4页

你可能喜欢

  • 入门教程
  • 学习笔记
  • 学习指南
  • API文档
  • 学习中文
  • 开发模式
  • 教程下载地址

热门文档

相关文档

  • ExtJS 4 官方手册:应用架构设计 02 简体中文版

    ExtJS 4 官方手册:应用架构设计 02 简体中文版_...我们采用了 MVC 架构,并将它应用到一个比较复杂的... ExtJS 4 官方指南:MVC架... ExtJS 4 官方指南...

  • ExtJS 4 官方手册:应用架构设计 03 简体中文版

    ExtJS 4 官方手册:应用架构设计 03 简体中文版_...(一、二) 多拉风格的应用程序,并开始将 MVC 架构... ExtJS 4 官方指南翻译:... ExtJS 4 实用工具类...

  • ExtJS 4 官方指南:类系统 简体中文版

    ExtJS 4 官方指南:类系统 简体中文版_IT/计算机_专业资料。ExtJS 4 官方指南:类系统 简体中文版Ext JS 4 类系统在历史上第一次,Ext JS 的经历了一个在...

  • ExtJS 4 官方手册:应用架构设计 01 简体中文版

    ExtJS 4 官方手册:应用架构设计 01 简体中文版_IT/计算机_专业资料。ExtJS 4 官方手册 简体中文版Extjs4 应用架构设计(一) 应用架构设计(应用的可扩展性、可...

  • ExtJS 4 官方指南:数据 Data 简体中文版

    ExtJS 4 官方指南:数据 Data 简体中文版_IT/计算机_专业资料。ExtJS 4 官方...{ title:'Ext JS 4.0 MVC Architecture', body:'It\'s a great Idea to...

  • Extjs4.5 MVC入门指南

    适用extjs 4或者5版本 1.框架结构 2. 新功能mvc 运用Extjs4\5 学习指南富...目录为 ext 官方提供的例子程序,其中可能包涵 php 的代码,错误信息可以 暂时不...

  • Extjs 4.2.0 MVC教程

    应用 MVC 结构,所有的类都在 app/文件夹下,依次包含子文件夹来命名你的 ... ExtJS 4 官方指南:MVC架... 27页 2下载券 extjs mvc architecture 21页 ...

  • EXTJS4之MVC架构

    EXTJS4之MVC架构_计算机软件及应用_IT/计算机_专业资料。EXTJS4之MVC架构基础... Extjs4.0中文学习手册、... 140页 4下载券 ExtJS 4 官方指南:MVC架......

  • SSH框架开发实例 06.ExtJs MVC框架搭建

    SSH框架开发实例 06.ExtJs MVC框架搭建_计算机软件...tree application HTML 欢迎访问我们的官方网站 www.... 安全乘机指南 如何选择安全的航班 正确使用机上氧气...

  • EXTJS的MVC开发模式

    EXTJS的MVC开发模式_IT/计算机_专业资料。今日推荐 157份文档 ... ExtJS 4 官方指南:MVC架... 27页 2下载券 利用MVC模式开发Java应用... ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email