比如这样的JSON数据:
{
"title":"xxx",
"context":"demodemodemo",
"author":"ringotc"
}
要转换成:
xxx
demodemodemo
Author:ringotc
如何把JSON数据优雅的(可移植性、简约、明了)的转换成HTML标签?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
https://github.com/moappi/json2html
看看这个是否适合你。
Tempo ( http://twigkit.github.io/tempo/ )
还可以使用mustache+jquery:
http://mustache.github.io/
jQuery 或者 JSLite.io 简单快速的实现