曾经花了两三天,看Using the Dojo JavaScript Library to Build Ajax Applications,基本知道怎么用,倒是其中的js不敢问津。
迷恋工具的我,下载Eclipse 3.5 和Myeclipse 7.0 ,搞到出来之时,发现好慢,特别是我将Dojo添加到Eclipse中之后,那加“卡”...
今天上午重来使用Eclipse3.2 + Myeclipse 5.5 经典组合。这次安装插件都使用Link方式了!
写了第一个网页,挺不错的插件,感觉java与C#就是 linux和Windows...
login.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>我的第一个ExtJS界面</title>
<!-- 链如css -->
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">
<!-- 链接JS -->
<script type="text/javascript" src="ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all.js"></script>
<script type="text/javascript" src="ext/ext-all-debug.js"></script>
<!-- 用户自己写的 -->
<script type="text/javascript" src="login.js"></script>
</head>
<body>
<div id="loginForm"></div>
</body>
</html>
------------------------------------------------------js----------------------------------------------------
login.js
Ext.onReady(function(){
var loginpanel=new Ext.Panel({
renderTo:"loginForm", // renderTo 绑定到
id:"loginForm2",
title:"我的第一个ExtJS",
width:300,
height:300
})
});
运行情况:
备注:
Part 2 、请注意导入顺序 js ,一开始就调试错误