vue中使用filter对v-for循环中的item数据进行处理

Vue.filter('format',function(value){ return value.substr(0, 1); }); var vm=new Vue({ el:'#box', data:{ list:[ {msg:"11",id:1},
相关文章
相关标签/搜索