重新学习vue2 - 发现隐藏其中的细节 - part2
filter(过滤器)
1
2<p>{{ message | capitalize }}</p>
<div v-bind:id="rawId | formatId"></div>1
2
3
4
5filter: {
capitalize: function(val) {
return val
}
}过滤器可以串联,值从左向右传递
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
DisqusValine