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

Like or feel useful point like, pay attention to, forward three lian oh! Whoremonger can’t find a girlfriend this year!