1、JSON代码

Ext.MyTabs=Ext.extend(Ext.TabPanel ,{
xtype:"tabpanel",
	activeTab:2,
	width:694,
	height:571,
	initComponent: function(){
		this.items=[
			{
				xtype:"panel",
				title:"学生",
				autoScroll:false,
				width:703,
				items:[
					{
						xtype:"grid",
						title:"我的表格",
						columns:[
							{
								header:"学号",
								sortable:true,
								resizable:true,
								dataIndex:"data1",
								width:100
							},
							{
								header:"姓名",
								sortable:true,
								resizable:true,
								dataIndex:"data2",
								width:100
							},
							{
								header:"性别",
								sortable:true,
								resizable:true,
								dataIndex:"data3",
								width:100
							},
							{
								header:"年龄",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"电话",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"住址",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"QQ",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							}
						]
					}
				]
			},
			{
				xtype:"panel",
				title:"教师",
				items:[
					{
						xtype:"grid",
						title:"我的表格",
						columns:[
							{
								header:"工号",
								sortable:true,
								resizable:true,
								dataIndex:"data1",
								width:100
							},
							{
								header:"姓名",
								sortable:true,
								resizable:true,
								dataIndex:"data2",
								width:100
							},
							{
								header:"年龄",
								sortable:true,
								resizable:true,
								dataIndex:"data3",
								width:100
							},
							{
								header:"性别",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"电话",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"电话",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"QQ",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							}
						]
					}
				]
			},
			{
				xtype:"panel",
				title:"课程",
				items:[
					{
						xtype:"grid",
						title:"我的表格",
						columns:[
							{
								header:"编号",
								sortable:true,
								resizable:true,
								dataIndex:"data1",
								width:100
							},
							{
								header:"名称",
								sortable:true,
								resizable:true,
								dataIndex:"data2",
								width:100
							},
							{
								header:"教授教师",
								sortable:true,
								resizable:true,
								dataIndex:"data3",
								width:100
							},
							{
								header:"选课人数",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"上课时间",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"分数",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							},
							{
								header:"学生学号",
								sortable:true,
								resizable:true,
								dataIndex:"",
								width:100
							}
						]
					}
				]
			}
		]
		Ext.MyTabs.superclass.initComponent.call(this);
	}
})

2、执行结果

(1)学生Tab页

(2)教师Tab页

(3)课程Tab页

最新文章

  1. 数独 JAVA实现
  2. OAuth2.0 四种授权模式
  3. netperf安装及使用
  4. qt中添加Q_OBJECT报错的问题
  5. pycharm 中 pep8 检查开启.
  6. [插件]jQuery multiselect初始化及默认值修改
  7. Andrew Ng机器学习公开课笔记 -- Mixtures of Gaussians and the EM algorithm
  8. python7 静态方法、类方法、属性方法 ;反射;异常处理
  9. hdu----(1599)最大子矩阵(几何/dp)
  10. Nginx 的 RTMP 模块的在线统计功能 stat 在 multi-worker 模式下存在 Bug
  11. struts 2学习笔记—浅谈struts的线程安全
  12. django自带User管理中添加自己的字段方法
  13. Python:爬取乌云厂商列表,使用BeautifulSoup解析
  14. mapreduce任务失败、重试、猜測式运行机制小结
  15. AJAX同步和异步的区别
  16. (python)剑指Offer(第二版)面试题14:剪绳子
  17. POJ1830开关问题
  18. opencontrail—VXLAN模式下数据包的传输过程
  19. curl用法一例 传递代理用户名密码
  20. python pandas使用数据透视表

热门文章

  1. 使用postMessage实现跨域 解决'Failed to execute 'postMessage' on 'DOMWindow''
  2. Asp.net core 2.0.1 Razor 的使用学习笔记(五)
  3. 小白入门Docker基础篇
  4. Go语言入门——dep入门
  5. Django中模板的用法简介
  6. vsftp实现只能上传不能下载、删除权限配置
  7. ABP官方文档翻译 7.2 Hangfire集成
  8. xBIM 多个IFC文件合并
  9. Perf工具
  10. 代理(Proxy)模式