New project launches, need to use ExtJS, in order to learn it, now began to record this knowledge, go!
First, configure the Eclipse plugin Spket
Ii. introduction of ExtJS Files
- Create a new Web project in Eclipse and add several core files to the EXTJS structure such as:
Third, the preparation of procedures, testing
Ext.onready (function() { Ext.Msg.alert (' hello ', ' Hello World '); });
<%@ Page Language="Java"Import="java.util.*"pageencoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en"><HTML><Head><!--Introducing ExtJS Frame Styles -<Linkrel= "stylesheet"type= "Text/css"href= "Extjs4.2.1/resources/css/ext-all.css"><!--referencing the Chinese environment file -<Scripttype= "Text/javascript"src= "Extjs4.2.1/locale/ext-lang-zh_cn.js"></Script><!--referencing ExtJS boot files -<Scripttype= "Text/javascript"src= "Extjs4.2.1/bootstrap.js"></Script><!--reference index.jsp corresponding to Index.js -<Scripttype= "Text/javascript"src= "Index.js"></Script></Head><Body></Body></HTML>
- Start Tomcat, run the Web project: http://localhost:8888/WebDemo/
OK, done, ExtJS knowledge is still a lot, learn slowly.
Configuring ExtJS in Eclipse