input事件change无法上传相同文件的问题
html
<input id="file" type="file" accept=".map" onchange="upload()" />
JS
document.getElementById('file').value = null;
vue
<input ref="referenceUpload" @change="referenceUpload" type="file" accept=".map" multiple/>
methods: { referenceUpload(e) { this.$refs.referenceUpload.value = null; }, }
 
                    
                
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号