LiquidJS

教程标签过滤器演示API
Github Support
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere

json

v9.10.0

通过 JSON.stringify() 把值转换为字符串,多用于调试用途。

输入

{% assign arr = "foo bar coo" | split: " " %}
{{ arr | json }}

输出

["foo","bar","coo"]
上次更新:2023-08-17 上一页下一页
目录
回到顶部
© 2023 Harttle
本文档通过 CC BY 4.0 授权。
    教程标签过滤器演示API
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere