<! DOCTYPE html>
<meta http-equiv= "content-type" content= "text/html; Charset=utf-8 "/>
<title></title>
<meta charset= "utf-8"/>
<--extjs style and Class library--
<link rel= "stylesheet" type= "text/css" href= "resource/extjs/packages/ext-theme-crisp/build/resources/ Ext-theme-crisp-all.css "/>
<script type= "text/javascript" src= "resource/extjs/bootstrap.js" ></script>
<script type= "text/javascript" src= "resource/extjs/packages/ext-locale/build/ext-locale-zh_cn.js" ></ Script>
<script type= "text/javascript" src= "resource/extjs/packages/ext-charts/build/ext-charts.js" ></script >
<--reference External JS file--
<script src= "001_helloworld.js" ></script>
<body>
</body>
Ext.onready (function () {//ext.onready Program Inbound
/*
message box
*/
Ext.MessageBox.alert (' title ', ' Hello world! '); //pop -up window
/*
Inquiry Box
*/
Inquiry Box
Ext.Msg.confirm (' hint ', ' confirm Delete ', function (op) {
If (op== ' Yes ') {
Alert (' Confirmation ');
}else{
Alert (' Cancel ');
// }
//});
/*
Input box
*/
Ext.Msg.prompt (' title ', ' Please enter name ', function (op, Val) {
Console.info (op); Op OK cancel (ok cancel) val input value
Console.info (val);
if (op = = "ok") {
Console.info (op);
Console.info (val);
} else {
Console.info (op);
Console.info (val);
// }
}, this, true, ' Zhang San (input box default Value) ');
/*
Wait Box progress bar
*/
Ext.Msg.wait (' hint ', ' I am content ', {
Interval:400,//cycle Timing interval!
Duration:2000,//total duration
Increment:5,//execution progress bar 5 times Execution Progress (1-100) Total 5 executions
Text: ' Update in ',//text on progress bar
Scope:this,//scope Current Scope [sk?? P
Fn:function () {
callback function
Alert ("update succeeded");
// },
Animate:true//update render with an animated effect is the progress bar smooth Walk.
//});
/*
Show method
Customize the Prompt box
*/
Ext.Msg.show ({
Title: ' I am a custom cue box ',
Msg: ' I am content!! ‘,
width:300,
height:300,
Buttons:Ext.Msg.YESNOCANCEL,//button displayed directly in the Ext.window.MessageBoxView to see the properties can be found
Icon:Ext.Msg.ERROR//icons
});
});
Extjs001helloworld pop-up window