读书人

freemarker中 The only legal compari

发布时间: 2013-03-25 15:43:04 作者: rapoo

freemarker中 The only legal comparisons are between two . 有关问题解决
freemarker.template.TemplateException: The only legal comparisons are between two numbers, two strings, or two dates.Left hand operand is a freemarker.template.SimpleNumberRight hand operand is a freemarker.template.SimpleScalar

其原因为左边与右边的类型不一样,将它们类型转换成一样就OK了

读书人网 >Web前端

热点推荐