Freemark 判断是否为null的两种判断方式的区别特点

orderRecordVo.updateTime

1:用orderRecordVo.updateTime?if_exists 方法判断     ---------------如果要取的字段存在就显示  不存在就显示空

2:orderRecordVo.updateTime ?? 方法判断                    --------------- 判断变量是否为空,空返回false,否则返回 true

posted @ 2022-08-04 19:13  码奴生来只知道前进~  阅读(96)  评论(0)    收藏  举报