1.删除子img标签
$('#xxx img').remove();
2.layui上传设置
var uploadInst = upload.render({....});
uploadInst .config.elem.next()[0].value = ''"; 清空图片上传记录
upload.render({
elem: '#headImg'
,auto:false
, url: '/IntegralInput/imageUpload'
, size: 5000
, multiple: false
, number: 1
,bindAction:'#submitBtn'
})
auto设置是否自动上传,multiple设置是否多选图片,number设置可上传图片数量,bindAction是通过响应(点击按钮)来进行上传