关于.webp 格式图片在 ios 设备上无法正常显示的问题

使用正则表达式,将接口数据里面的.webp格式的图片,替换为.jpg图片

// 使用字符串的 replace() 方法,将 webp 的后缀名替换为 jpg 的后缀名
  res.message.goods_introduce = 
  res.message.goods_introduce.replace(/<img /g, '<img style="display:block;" ')
  .replace(/webp/g, 'jpg')