Extjs dream journey (1)-First extjs Program (helloworld)

Source: Internet
Author: User

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:

  1. Introduce ext style files to Web Applications
  2. 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:

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.