1.在取消按鈕里的function中通過id找到這個對話框所在的層,
2.點出這個對話框,然后在括號了寫入關閉的方法
<div id="dl1" class="easyui-dialog" title="窗口" style="width:400px;height: 200px" data-options=" toolbar:[ { text:'添加', iconCls:'icon-add', handler:function(){alert('點擊了添加按鈕')} },{ text:'保存',iconCls:'icon-save' } ], buttons:[ {text:'確定'},{text:'取消',handler:function(){$('#dl1').dialog('close')}} ]">