ExtJS examples of Getting Started

Source: Internet
Author: User

Recently do the project began to use ExtJS, did not contact the ExtJS, but I believe that through the persistence of learning and accumulation, will soon be able to use, hereby i record some of the study of the demo, do not be afraid to learn, is afraid of their own less practice, a skilled to be born skillfully, more practice will certainly, nonsense not more say, start recording Walk you:

Prepare in advance:

To import the style sheets and class libraries required for Ext:

<link   href= "extjs/resources/css/ext-all.css"      rel= "stylesheet" type= "text/css"/><script src = " Extjs/ext-all.js "                     type=" text/javascript "></script><script src =" extjs/ext.base.js "                 type=" Text/javascript "></script><script src =" extjs/locale/ext-lang-zh_cn.js "     type=" Text/javascript " ></script>

Ext's code is written in the following script:

<script type= "Text/javascript" >    ext.onready (function() {    }); </script>

Now start to write examples, in fact, the examples are online, but it doesn't matter, into their own things is their own, but others than we learned before

Ext.MessageBox.alert ("Audit Prompt", "Audit pass!") ");

var win = ext.create ("Ext.window.Window", {
Title: ' Sample Window ',
width:600,
height:400
});
Win.show ();

var panel = new Ext.panel ({
Title: "Example",
Renderto: ' Sub1 ',
Width: ' 300px ',
HTML: "<div id= ' div1 ' property1= ' Pro1 ' style= ' height:200px ' ><div id= ' ' property1= ' Pro1 ' > my id is sub3</ Div><div id= ' ></div></div> '
});

<link href= "Extjs/resources/css/ext-all.css" rel= "stylesheet" type= "text/css"/><script src = "extjs/ Ext-all.js "type=" text/javascript "></script><script src =" extjs/ext.base.js "type=" Text/javascript " ></script><script src = "extjs/locale/ext-lang-zh_cn.js" type= "Text/javascript" ></script>

ExtJS examples of Getting Started

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.