方法一:

import imgURL from '../../images/logo.png';  

<img src={imgURL} alt="1"/>

方法二:

<img src={require('../../images/logo.png')} alt="2"/>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 1970-01-01
  • 2021-05-03
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案