Extjs-4.2.1 (i)--Edit Hello Word

Source: Internet
Author: User

After setting up a good environment, we can use ExtJS to develop.

First, copy the relevant ExtJS files in the project, such as:

Note: It is not necessary to import all the entire EXT development package, so it is easy to cause eclipse to die because eclipse will automatically detect the legality of JS and consume a lot of detection time, CPU and memory. Usually the common development only needs to use the \extjs-4. 2. 1\Resources File package , \extjs-4. 2. 1\bootstrap.js, \extjs-4. 2. 1\ext-all.js These two resources can be, need to import \extjs-4 culture. 2. 1\locale\ext-lang-zh_cn.js on it,

Such as:

Second, edit the HTML-related code:

Note: The above reference JS file order must be:

First reference bootstrap.js//is the base class for all JS
Re-reference Ext-all.js

Third, editor Helloword.js

/* Ext.onready (function () {    Ext.Msg.alert ("Hello word!");}) */ Ext.onready (function() {    Ext.MessageBox.alert ("Hello World", "Hello world!")});

Operation, the effect is as follows:

Attached: processing in JS edit after the run garbled

See also: http://www.cnblogs.com/maowang1991/archive/2013/02/05/2893155.html

Extjs-4.2.1 (i)--Edit Hello Word

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.