ts提取html标签中的图片链接
async extractImg(html: string){ const arr = html.match(/<img.*?>/g); if (arr) return arr.map(item => item.match(/\s+src=['"](.*?)['"]/)![1]); }
async extractImg(html: string){ const arr = html.match(/<img.*?>/g); if (arr) return arr.map(item => item.match(/\s+src=['"](.*?)['"]/)![1]); }