handlebars杂记 1.{{{caption}}}三个花括号,可以解析 空格 变成 ‘空格’。 2.数据是posts:[{ }]数组时候,可以用{{posts.length}}取得其数组长度 3.handlebars helper 注册 自定义命名 处理后可以 return出想要的字符串。