将其value置为null

            <input
                type="file"
                
                accept="text/plain"
                onChange={readFile}
                onClick={ (e: any) => ( e.target.value = null )} /> //点击时将value置为null

相关文章:

  • 2021-09-22
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-01-18
  • 2022-01-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-13
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案