Learn about ExtjsForVs (first case HelloWord) and extjs case

Source: Internet
Author: User

Learn about ExtjsForVs (first case HelloWord) and extjs case

Case 1-Hello Word

1. This exercise takes the ext-4.0.7 as an example, first download the ext package from the Internet.

 

2. Open the package and copy the three files or folders to the project.

Resource folder

Bootstrap. js

Ext-all.js

3. Build the following code in first-hello.html:

 

1 <! DOCTYPE html> 2  

4.right-click first-hello.html and choose View in browser.

 

Alert (0) is a real window, And Ext. MessageBox. alert () is only a div simulated window.

5. Click OK to pop up the box.

 

6. in this case, the first example is complete. Is it very simple. next we will explain Ext. messageBox. alert () method, which has four parameters. For simplicity, we mainly introduce the first three parameters:
Alert (title, msg, function (){})
Title, msg are mandatory parameters, and function is optional. this parameter is triggered when the pop-up window is closed.

Ext. MessageBox. alert ("title", "msg ");

 

Ext. MessageBox. alert ("title", "msg", function () {alert ("Close dialog box popped up! ")});

Related Article

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.