我用netbeans6.5和ext2.2按照网上的一个帖子的做法把ext2.2的库导入成功了,在编写程序时也出现了ext的对应提示,但是写完后运行就是没有ext的效果。一下是我按照这个方法导入的ext库
I am using NetBeans 6.5 and Ext JS 2.2.NetBeans menu "Tools" and then submenu "Libraries"
Click the "New Library..." button
Set Library Name: as "ExtJS2.2" and Library Type: as "JavaScript Libraries" and then click "OK"
Click the "Add Zip..." button
Select the location of where you have your "ext-2.2.zip" file
Click "OK" to close the Library Manager window.
Now, one can hook up the new Ext JS library to the project you would like code completion with
Right click the proposed project and select "Properties"
Select the "JavaScript Libraries" Category
Click the "Add..." button to open up the "Add JavaScript Libraries" window
ExtJS2.2 should be listed as an available JavaScript Library
Check the Add box for the ExtJS2.2 Library and click "OK"
The Extracting JavaScript Libraries window should pop up and it should take a good couple minutes to extract the Ext JS libraries for use with NetBeans to activate the code completion functionality.
Click "OK" to close the Project Properties window
Open up a javascript file in your project and start with typing "Ext."
Notice how the code completion is activated and one may now scroll thorugh the language and enjoy NetBeans taking care of some of the guess work we coders must deal with when coding to multiple APIs and various syntax oddities.这里是我的程序<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ExtJS</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all.js"></script></head>
<body>
    <script>
Ext.onReady(function()
{
Ext.MessageBox.alert("hello","Hello,easyjf open source");
});</script>
</body>
</html>本人是初学者,希望大家能多多指点,不胜感激。