在WordPress注释API中,我希望通过ReactJS获得图像标签src值。因此,我尝试获取值为{ item.author_avatar_urls[24] }
的值,但在前面未正确获取img标签,它看起来像这样:
<img src="http://localhost/project/wp/wp-content/uploads/2019/02/auhtor.png" width="49" height="50" alt="admin" class="avatar avatar-50 wp-user-avatar wp-user-avatar-50 alignnone photo" />
如何从JSON对象获取正确的img src值?