进一步优化 form name 数组支持

This commit is contained in:
sentsin
2017-12-08 12:13:05 +08:00
parent 4b63b64865
commit 31b8a0aa83
30 changed files with 55 additions and 35 deletions

View File

@@ -169,6 +169,7 @@ layui.use('upload', function(){
tr.find('.demo-delete').on('click', function(){
delete files[index]; //删除对应的文件
tr.remove();
uploadListIns.config.elem.next()[0].value = ''; //清空 input file 值,以免删除后出现同名文件不可选
});
demoListView.append(tr);