tp5小技巧
1)时间转换:

{$v.createtime|date='y-m-d h:i:s',###}
{$v['createtime']|date=“y-m-d h:i:s”,###}

2) php去除对象字段 unset()

标签: tp5

添加新评论