首页 > Freemaeker 怎样使用嵌套表达式?

Freemaeker 怎样使用嵌套表达式?

类似于以下这种截取文档后缀名的表达式:

${doc.path?substring(${doc.path?last_index_of('.')})}

自问自答,果然还是要自己寻找答案啊!

${doc.path?substring(doc.path?last_index_of('.') + 1)}
【热门文章】
【热门文章】