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! ")});