@小田
用正则就可以自己处理
this.setState({
content: <div class="news-rick-container">${data.data.content .replace(/!important/g, '') .replace(/<img[^>]*>/gi, function(match, capture) { return match.replace(/style\s*?=\s*?([‘"])[\s\S]*?\1/gi, 'style="max-width:100%;height:auto;"'); // 替换style })}
,
subject: data.data.subject,
time: data.data.published_at
});