Mustache -- 八字胡

BrE /mə'stɑːʃ/ ; AmE /'mʌstæʃ/

n. (很长时称作 moustaches) 髭,口上须,八字须;

# 栗子

<span>Message: {{ msg }}</span>
1

The mustache tag will be replaced with the value of the msg property on the corresponding data object. It will also be updated whenever the data object’s msg property changes. Mustache 标签将会被替代为对应数据对象上 msg property 的值。无论何时,绑定的数据对象上 msg property 发生了改变,插值处的内容都会更新。

# 最后

mustach

瞅一眼上图,像不像八字胡。mustache tag 就是双花括号语法。有兴趣的同学可以参考一下著名的轻逻辑模板语言Mustache

关注公众号【程序员英语词汇】获取最新内容
程序员英语词汇
Copyright © 2020 Ted Yuen