首页 > 代码库 > ExtJS4.x 开发环境搭建

ExtJS4.x 开发环境搭建

需要的资源

  1. ExtJS4.2 
  2. eclipse

开发环境搭建

在项目中国需要引用的文件:

测试页面代码:

 

<%@ page language="java" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ExtJs 演示</title>
<link rel="stylesheet" type="text/css" href="http://www.mamicode.com/extjs/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="http://www.mamicode.com/theme/theme.css" />
</head>
<body>
<script type="text/javascript" src="http://www.mamicode.com/extjs/bootstrap.js"></script>
<script type="text/javascript" src="http://www.mamicode.com/extjs/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.onReady(function(){
Ext.Msg.alert(‘Info‘, ‘This is a test!‘);
});

</script>
</body>
</html>

 

测试结果: