extjs5.0入门教程
2014-08-04 16:41
393 查看
下载ext-5.0.0.736.zip,解压,
在项目WebRoot目录下加入ext-5.0.0.736\ext-5.0.0.736\build\ext-all.js
和ext-5.0.0.736\build\packages\ext-theme-neptune\build\resources\ext-theme-neptune-all.css
把ext-5.0.0.736\build\packages\ext-theme-neptune-touch\build\resources\images 整个文件拷贝到ext-theme-neptune.js文件同一目录下.
第一个程序示例
<!DOCTYPE html>
<html>
<head>
<title>test.html</title>
<meta http-equiv="keywords"content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is mypage">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css"href="ext/ext-theme-neptune-all.css" />
<scripttype="text/javascript"src="ext/ext-all.js"></script>
<scripttype="text/javascript" src="test.js"></script>
</head>
<body>
</body>
</html>
test.js的内容
Ext.onReady(testWindow);
function testWindow() {
Ext.create('Ext.window.Window',{
title : 'Hello',
height : 200,
width : 400,
html : "Hellow word!"
}).show();
};
程序运行结果如下图
Ext.onReady(testWindow);表示文档加载完成后执行testWindow函数
在项目WebRoot目录下加入ext-5.0.0.736\ext-5.0.0.736\build\ext-all.js
和ext-5.0.0.736\build\packages\ext-theme-neptune\build\resources\ext-theme-neptune-all.css
把ext-5.0.0.736\build\packages\ext-theme-neptune-touch\build\resources\images 整个文件拷贝到ext-theme-neptune.js文件同一目录下.
第一个程序示例
<!DOCTYPE html>
<html>
<head>
<title>test.html</title>
<meta http-equiv="keywords"content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is mypage">
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<link rel="stylesheet" type="text/css"href="ext/ext-theme-neptune-all.css" />
<scripttype="text/javascript"src="ext/ext-all.js"></script>
<scripttype="text/javascript" src="test.js"></script>
</head>
<body>
</body>
</html>
test.js的内容
Ext.onReady(testWindow);
function testWindow() {
Ext.create('Ext.window.Window',{
title : 'Hello',
height : 200,
width : 400,
html : "Hellow word!"
}).show();
};
程序运行结果如下图
Ext.onReady(testWindow);表示文档加载完成后执行testWindow函数
相关文章推荐
- Extjs视频教程_Extjs5.0从入门到实战开发信息管理系统
- Extjs视频教程_Extjs5.0从入门到实战开发信息管理系统
- Extjs视频教程_Extjs5.0从入门到实战开发信息管理系统
- Extjs视频教程_Extjs5.0从入门到实战开发信息管理系统
- ExtJs5.0在WebStorm上的使用之入门教程(一)编写第一个网页 HelloExt
- Extjs5.0从入门到实战开发信息管理系统视频教程
- 无废话ExtJs 入门教程
- 无废话ExtJs 入门教程十八[树:TreePanel]
- 无废话ExtJs 入门教程八[脚本调试Firefox:firebug]
- 无废话ExtJs 入门教程九[数字字段:NumberField、隐藏字段Hidden、日期字段:DataFiedl]
- 介绍Extjs的formPanel (入门教程)
- 无废话ExtJs 入门教程十六[页面布局:Layout]
- 无废话ExtJs 入门教程十七[列表:GridPanel]
- 无废话ExtJs 入门教程三[窗体:Window组件]
- 无废话ExtJs 入门教程二十三[员工管理实例:Demo]
- 无废话ExtJs 入门教程十[单选组:RadioGroup、复选组:CheckBoxGroup]
- 无废话ExtJs 入门教程十九[API的使用]
- 无废话ExtJs 入门教程七[登陆窗体Demo:Login]
- 无废话ExtJs 入门教程二[Hello World]
- 无废话ExtJs 入门教程十一[下拉列表:Combobox]