js解决办法

HTML:<input />

JS:document.getElementById('file').value = null;

vue逻辑

<input ref="referenceUpload" @change="referenceUpload" type="file" accept=".map" multiple/>

回调成功方法里:this.$refs.referenceUpload.value = null;

相关文章: