62,041
社区成员
发帖
与我相关
我的任务
分享
<%--新增窗口--%>
<div id="add" class="easyui-dialog" title="新增" data-options="modal:true,closed:true,iconCls:'icon-save',buttons: [{
text:'确定',
iconCls:'icon-ok',
handler:function(){
saveAdd();
}
},{
text:'取消',
handler:function(){
closeAdd();
}
}]" style="width:600px;height:500px;padding:10px;">
<form accept-charset="UTF-8" id="addFileImg" method="post" action="" enctype="multipart/form-data">
<p style="text-align: center;">
<input type="file" name="addImg" id="Addimg" />
</p>
</form>
</div>
<script type="text/javascript">
function closeAdd() {
$('#addFileImg').form('clear');
$('#addImg').attr("src", "");
}
$('#Addimg').change(function () {
//执行这个函数里面的内容
}
</script>