const regex = new RegExp('<img', 'gi') res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`);
duokexiao 2021-03-26 09:25 原文
const regex = new RegExp('<img', 'gi') res.details = details.replace(regex, `<img style="max-width: 100%; height: auto"`);