BER分博客 - 模板函数 https://blog.berfen.com/tag/%E6%A8%A1%E6%9D%BF%E5%87%BD%E6%95%B0/ zh-CN Wed, 22 Jan 2020 12:58:00 +0000 Wed, 22 Jan 2020 12:58:00 +0000 ThinkPHP5.0模板时间格式转换为中文格式 https://blog.berfen.com/post/6.html https://blog.berfen.com/post/6.html Wed, 22 Jan 2020 12:58:00 +0000 taotecode ThinkPHP5.0模板时间格式转换为中文格式

问题背景

在ThinkPHP5.0模板开发中,我们经常需要将数据库中的时间格式转换为更友好的中文显示格式。本文针对这一常见需求,详细介绍了几种实现方法,并分享了一个实际开发中遇到的"小坑"及其解决方案。

[...]

]]>
0 https://blog.berfen.com/post/6.html#comments