scenario
When making a Vue project, you need to use the method in filters in methods. Previously, you would copy the method in filters into Methods and then use this. Method call.
plan
You can print this.$options and see that there are a lot of attributes in it. Then use the
This.$options.filters[' filter method name '](the data you need to process);Copy the code