【问题标题】:The value of property is in HTML String coming from API (REACTJS)属性的值是来自 API (REACTJS) 的 HTML 字符串
【发布时间】:2021-06-09 08:40:59
【问题描述】:

SEE IMAGE HERE!!!

如何在 UI 中显示这个 html!请帮忙

<div class="photo"><img width="40px" height="40px" src="http://localhost/castclass/public/uploads/user_35579/user_35571/"></div>
<div class="action-area">
<span class="name">Something</span>
<span>Join Request for Something</span>
</div>

【问题讨论】:

    标签: javascript html reactjs api dom


    【解决方案1】:

    也许将这个message 用作组件本身。

    【讨论】:

    • @Fakhir Arslan 欢迎来到 SO。请考虑在您的答案中添加更多详细信息 - 比如为什么这么想,如何这样想等等。谢谢。
    猜你喜欢
    • 2023-03-26
    • 2018-10-12
    • 2014-05-14
    • 2017-05-24
    • 2015-04-10
    • 1970-01-01
    • 1970-01-01
    • 2012-10-30
    • 1970-01-01
    相关资源
    最近更新 更多