Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在大豆模板本身中获取当前日期和时间?
我相当有信心你不能这样做。您可以实现自己的自定义函数,但将当前日期/时间字符串作为参数传递给模板可能会容易得多。