${.version} 当前 freemarker 的版本
${.locale?lower_case?replace("_", "-")} 当前 Locale,例 en-us
${userName!"John"} 为空的时候不报错,给一个默认值
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// moment.js locale configuration | |
// locale : chinese (zh-cn) | |
// author : suupic : https://github.com/suupic | |
// author : Zeno Zeng : https://github.com/zenozeng | |
(function (factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['moment'], factory); // AMD | |
} else if (typeof exports === 'object') { | |
module.exports = factory(require('../moment')); // Node |
本贴不是广告!这里有更多!