totalMoney 用全局的过滤器报错?
{{totalMoney | money('元')}}
Vue.filter("money", function(value, type) { //全局过滤器
return "¥ " + value.toFixed(2) + type;
});
报错
[Vue warn]: Failed to resolve filter: money
(found in <Anonymous>)
{{totalMoney | money('元')}}
Vue.filter("money", function(value, type) { //全局过滤器
return "¥ " + value.toFixed(2) + type;
});
报错
[Vue warn]: Failed to resolve filter: money
(found in <Anonymous>)
2017-10-20
举报