let str = '<img style="20px;height: 20px;" src="imgaddress.png" alt="">平安'
 
let reg =/<img.*?src=[\"|\']?(.*?)[\"|\']?\s.*?>/i
let value = str.replace(reg, '')
console.log(value)    // 平安

 

相关文章:

  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-10-07
  • 2021-07-12
  • 2021-09-11
  • 2021-11-19
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案