如何优雅的把JSON转换成HTML标签?
比如这样的JSON数据:
{
"title":"xxx",
"context":"demodemodemo",
"author":"ringotc"
}
要转换成:
<div class="post">
<h1>xxx</h1>
<div class="context">
demodemodemo
</div>
<p>Author:ringotc</p>
</div>
如何把JSON数据优雅的(可移植性、简约、明了)的转换成HTML标签?
风雨不同舟-
11 years, 9 months ago