2017年2月21日
摘要: 一,自定义指令 二,使用指令 阅读全文
posted @ 2017-02-21 17:14 夏末秋萍 阅读(638) 评论(0) 推荐(0)
摘要: ${"asddfdsd"?substring(3,5)} ${"abcd"?cap_first} ${"abcd"?uncap_first} ${"abcd say "?capitalize} ${"abcd"?ends_with("a")?c} ${"abcd"?starts_with("a")?c} ${"abcaad"?index_of("a")} ${"abcda"?l 阅读全文
posted @ 2017-02-21 17:04 夏末秋萍 阅读(11951) 评论(0) 推荐(0)
摘要: ${3.4?floor} ${3.4?ceiling} ${3.45?round} ${3.45?rtf} ${3.458?string("0.##")} ${3.42?string.percent} ${3.42?string.currency} ${date?string("yyyy-MM-dd")} ${date?date} ${date?time} ${date?datetime} $... 阅读全文
posted @ 2017-02-21 17:03 夏末秋萍 阅读(453) 评论(0) 推荐(0)
摘要: ${seq1?first} ${seq1?last} ${seq1?seq_contains(6)?string} ${seq1?seq_index_of(6)} ${seq1?seq_last_index_of(6)} ${seq} ${seq1?size} ${seq} ${seq.name}--${seq.age} ${key} ... 阅读全文
posted @ 2017-02-21 17:01 夏末秋萍 阅读(868) 评论(0) 推荐(0)
摘要: 一自定义函数 二,使用自定义函数 阅读全文
posted @ 2017-02-21 16:59 夏末秋萍 阅读(2814) 评论(0) 推荐(0)
摘要: 当***.ftl文件分布在多个文件夹下时,读取文件方法 一,绝对路径的方法 二,相对路径的方法 阅读全文
posted @ 2017-02-21 16:56 夏末秋萍 阅读(1555) 评论(0) 推荐(0)
摘要: 有是数据包存在xml文档中 这是2可以使用 NodeModel.parse("xml文件");来读取数据 阅读全文
posted @ 2017-02-21 16:45 夏末秋萍 阅读(3457) 评论(0) 推荐(0)
2017年2月20日
摘要: ${user.name} ${(use.group.nam)!"不存在"} 数值存在 数值不存在 阅读全文
posted @ 2017-02-20 17:43 夏末秋萍 阅读(230) 评论(0) 推荐(0)
摘要: 我的第一个自定义指令 name ${name} --- ${age} ${num} 调用时 的内容 不服就干 阅读全文
posted @ 2017-02-20 17:40 夏末秋萍 阅读(120) 评论(0) 推荐(0)
摘要: freemarker模板支持的数据类型有: 标量:字符串,数字,布尔值,日期。 容器:哈希表,序列 子程序:方法和函数,自定义指令 阅读全文
posted @ 2017-02-20 17:38 夏末秋萍 阅读(265) 评论(0) 推荐(0)