1、新项目开始啦,后台用户管理页面涉及到表格数据添加,修改内容比较多。准备用EXTJS框架搞下,对于我这种JS不咋地的人来说,还真是个挑战。整了2天,才搞出一个Hello,world!我也是醉了。。

下载ExtJS;

1.build 这个文件夹下有真正需要引入的文件

3.examples 官方示例

6.packages 包含了extjs的主题、语言包,css等

8.ext-all 必须引入的核心文件

9.ext-all-debug 未压缩的ext-all文件

其他文件暂时不知道作用。

2、hello,world!

新建文件hello.html,把ext-all.js packages文件拷到同目录。

hello.html文件引入ext-all.js及packages目录下ext-locale-zh_CN.js,ext-theme-classic-all.css文件。

hello.html 插入代码

Ext.onReady(function () {
Ext.Msg.alert('title', 'Hello World!');
});

最终代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>hello world</title>
<script src="ext-all.js"></script>
<script src="packages/ext-locale/build/ext-locale-zh_CN.js"></script>
<link href="packages/ext-theme-classic/build/resources/ext-theme-classic-all.css" rel="stylesheet"/>
</head> <body>
<script type="text/javascript">
Ext.onReady(function () {
Ext.Msg.alert('title', 'Hello World!');
});
</script>
</body>
</html>

运行hello.html,运行成功显示:

最新文章

  1. iis6.0与asp.net的运行原理
  2. Ajax - ASP.NET MVC 4 系列
  3. HTML5 Canvas实战之刮奖效果
  4. html页面元素加载顺序
  5. QT 十六进制字符串转化为十六进制编码
  6. CF Drazil and Date (奇偶剪枝)
  7. 六、mysql字段类型选择
  8. PAT-乙级-1026. 程序运行时间(15)
  9. Frequent Pattern 挖掘之一(Aprior算法)(转)
  10. Android-67-Tomcat启动出错:Server Tomcat v7.0 Server at localhost failed to start.
  11. 金句: "對比MBA學位,我們更需要PSD學位的人!" Poor, Smart and Deep Desire to… | consilient_lollapalooza on Xanga
  12. DB Error: 1 &amp;quot;unrecognized token: &amp;quot;:&amp;quot;&amp;quot;
  13. JavaScript Function arguments.callee caller length return
  14. activemq学习
  15. 我推荐的一些iOS开发书单
  16. LeetCode 15. 3Sum(三数之和)
  17. AngularJS应用,常用数组知识点
  18. 如何在sublime安装ctags函数追踪插件
  19. supervisord支持扩展(xml RPC API &amp; Third Party Applications and Libraries)
  20. Java:【面向对象:类的定义,静态变量,成员变量,构造函数,封装与私有,this】

热门文章

  1. Step1 - How to: Define a Windows Communication Foundation Service Contract
  2. 1208E Let Them Slide
  3. Ubuntu查看端口使用情况,使用netstat命令:
  4. day08—css布局解决方案之多列布局
  5. L2 Regularization for Neural Nerworks
  6. 永远让比较函数对相等的值返回false
  7. mac安装pip并升级pip版本
  8. IDF-CTF-牛刀小试 writeup
  9. python可变数据类型和不可变数据类型
  10. 读取交货单拣配数量PIKMG(转)