First, download
I'm using this version of 1.3.5, http://www.jeasyui.com/download/list.php
After decompression, 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7B/68/wKioL1bNUjazs_eAAABX7BUlGDk234.png "title=" QQ picture 20160224144619.png "alt=" Wkiol1bnujazs_eaaabx7bulgdk234.png "/>
Delete the demo folder.
Second, establish the basic template
<! doctype html>Three, dialog box
1,class Introduction Method:
<div id= "dd" class= "Easyui-dialog" title= "My Dialog" style= "width:400px;height:200px;" data-options= "Iconcls: ' Icon-save ', resizable:true,modal:true" > Dialog Content. </div>
2, creating a dialog window with JavaScript is also allowed. Now let's create a modal window and call the ' refresh ' method to read the content through Ajax.
<div id= "DD" >dialog content.</div>
$ (' #dd '). Dialog ({title: ' My Dialog ', width:400, height:200, Closed:false, Cache:false, HREF: ' get_content.php ', modal:true}); $ (' #dd '). Dialog (' Refresh ', ' new_content.php ');
3, properties
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/69/wKiom1bNVICSKyu-AABVK83fkzk827.png "title=" QQ picture 20160224145745.png "alt=" Wkiom1bnvicskyu-aabvk83fkzk827.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/69/wKiom1bNVJywMXI7AABL06cEBpo364.png "title=" QQ picture 20160224145749.png "alt=" Wkiom1bnvjywmxi7aabl06cebpo364.png "/>
property to set $ (' #box '). Dialog ({title : ' title ',width : 400,height : 250,modal : true,//toolbar : ' #tt ',toolbar : [{text : ' edit ',iconcls : ' Icon-edit ', handler : function () {alert (' edit ');},}, {}],//buttons : ' #bb ', buttons : [{text : ' save ',iconcls : ' Icon-ok ',handler : function () { Alert (' Save ');}},{}]}); <div id= "tt" ><a href= "#" class= "Easyui-linkbutton" data-options= "Iconcls: ' Icon-edit ', plain:true" > Edit </a><a href= "#" class= "Easyui-linkbutton" data-options = "Iconcls: ' Icon-help ', plain:true" > Help </a></div><div id= "BB" ><a href= "#" class= "Easyui-linkbutton" data-options= "iconcls: ' Icon-ok '" > Save </a><a href= "#" class= " Easyui-linkbutton "data-options=" iconcls: ' Icon-cancel ' "> Close </a></div>PS:Dialog is inherited from window components, so window components and Panel components are available.
4, Event List
The window's events are fully inherited from Windows (Panel). So, simply refer to the events in the Window panel.
Dialog Events
$ (' #box '). Dialog ({
width:600,
height:400,
Modal:true,
Onclose:function () {
Alert (' Trigger when off! ‘);
},
});
5, method
Method Name Parameter Description
Dialog None returns an external dialog box object
Use of the jquery Easyui dialog box