gpt4 book ai didi

html - html中漂亮的Json对象

转载 作者:太空狗 更新时间:2023-10-29 15:26:37 25 4
gpt4 key购买 nike

如何在 html 中漂亮地打印 JSON 对象?我试过这个solution但没有工作。请帮助我实现这一目标需要做些什么。我尝试使用 json 管道:

<div class="box box-default">                     
<pre>{{placeDetail |json}}</pre>
</div>

最佳答案

你可以试试 |json

<div class="box box-default">
<code>
<pre>{{placeDetail |json}}</pre>
</code>
</div>

关于html - html中漂亮的Json对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45253208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com