过滤器的形式 :Vue.filter('函数名',function(msg){})
函数中msg是必须要穿的参数,来获取data中的数据,后边也可以传参,可以是多个。可以存在多个过滤器,用通道符隔开,执行顺序从前往后。


过滤器的形式 :Vue.filter('函数名',function(msg){})
函数中msg是必须要穿的参数,来获取data中的数据,后边也可以传参,可以是多个。可以存在多个过滤器,用通道符隔开,执行顺序从前往后。
本文标题:filter过滤器的使用
本文链接:https://www.haomeiwen.com/subject/rvkipctx.html
网友评论