feemarker对Boolean类型的值的处理
string 用于将布尔值转换为字符串输出
true转为“true”,false转换为“false”
如:
foo?string(“yes”,”no”)如果布尔值是true,那么返回“yes”,否则返回no
posted on 2010-11-16 20:22 Alan's Blog 阅读(390) 评论(0) 编辑 收藏 举报
string 用于将布尔值转换为字符串输出
true转为“true”,false转换为“false”
如:
foo?string(“yes”,”no”)如果布尔值是true,那么返回“yes”,否则返回no
posted on 2010-11-16 20:22 Alan's Blog 阅读(390) 评论(0) 编辑 收藏 举报