Second, the first ExtJS program: Helloextjs

Source: Internet
Author: User

Pre-development preparation

After downloading and extracting the ExtJS package, you can get the file folder structure:

In the actual development process does not need all the files and folders, the required include such as the following folder can be:

If you are using Eclipse for development, simply copy the above files to the Webroot folder or its subfolders.

Start
  1. New firstextjs.html
  2. Before using ExtJS, it is necessary to introduce the corresponding style and JS file on the page, and the minimum collection is usually the following: Ext-all.js,adapter/ext/ext-base.js,locale/ext-lang-zh_ Cn.js and the entire Resources folder.
    1. Ext-all.js,adapter/ext/ext-base.js includes all the functions of ext, all JS scripts are here.

    2. Locale/ext-lang-zh_cn.js is a Chinese translator.

    3. The resources folder is a CSS style sheet and a picture.

      • note the order in which JS files are imported
  3. Writing HTML
    <! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd" >
  4. Finally effect

At this point, the first ExtJS program is done. The process must be careful and careful, do not appear low-level errors. I was in the introduction of JS files when the path is wrong, the majority of Days O (︶^︶) O. Just not clear why the final display effect is still so ugly. 囧


Changes:

Previously, there was no import of images under the resources folder, causing problems with the display. New Folder structure:


After importing images again, it will display normally:



Second, the first ExtJS program: Helloextjs

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.