I have been learning the basics of extjs JavaScript for the past two days. Now I officially started my extjs dream journey and entered extjs learning!
I. Introduction to extjs
Extjs is an Ajax framework of RIA (rich Internet applications). It is very elegant. Web applications developed by extjs can provide outstanding page effects without the participation of artists. It uses JavaScript as the development language, draws on the swing design concept in Java, integrates the interactivity of desktop applications and the deployment flexibility of traditional Web applications, and is a good front-end Ajax framework. Extjs Official Website: http://www.extjs.org.cn/
Ii. Start using the extjs framework (develop the first extjs Program)
I have used version 3.4.1 here. The current version has gone to version 4.2.
Development steps:
- Introduce ext style files to Web Applications
- Introduce the extjs script Library (two, one driver adapter, and the other ext-all.js)
EXT application code: Use Ext. onready to call extjs Components
The first helloworld Program
HTML code:
<! Doctype HTML public "-// W3C // dtd html 4.01 transitional // en" "http://www.w3.org/TR/html4/loose.dtd"> <HTML>
JS Code:
Ext. onready (function () {// Ext. msg. Alert ("first ext window", "helloworld! "); Var window = new Ext. window ({Title: "helloworld", maximizable: True, width: 300, height: 300,}); window. show ();});
Final display effect: