$('#Dialog').dialog({
title: '发送邮件',
width: 400,
height: 300,
closed: false,
href: '',
modal: true,
buttons:[{
text:'发送',
iconCls:'icon-ok',
handler:function() {
$('#send_addForm').form('submit', {
url:'send.action',
success:function(data) {
var result = $.parseJSON(data);
if (result) {
$('#Dialog').dialog('destroy');
$.messager.show({
title : '提示',
msg : result.msg
});
} else {
$('#Dialog').dialog('destroy');
$.messager.alert('提示', result.msg);
}
}
});
}
},{
text:'取消',
iconCls:'icon-cancel',
handler:function() {
$('#Dialog').dialog('destroy');
}
}],
onClose:function() {
$(this).dialog('destroy');
}
});
});
<div id="Dialog">
<form id="send_addForm" method="post" enctype="multipart/form-data">
<table style="padding-top: 5px; padding-left: 20px">
<tr>
<td>
添加附件:
</td>
<td>
<input name="upload" type="file"
class="easyui-validatebox" style="width: 250px;" />
</td>
</tr>
</table>
</form>
</div>